We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 86dc414 + d6c5304 commit a0746fbCopy full SHA for a0746fb
src/SourceGeneration.Reflection/SourceReflector.cs
@@ -200,7 +200,7 @@ private static SourceTypeInfo CreateSourceTypeInfo(
200
PropertyType = x.PropertyType,
201
IsStatic = x.GetMethod?.IsStatic == true || x.SetMethod?.IsStatic == true,
202
CanRead = x.CanRead,
203
- CanWrite = x.CanRead,
+ CanWrite = x.CanWrite,
204
IsRequired = x.GetCustomAttribute<System.Runtime.CompilerServices.RequiredMemberAttribute>() != null,
205
IsAbstract = x.CanRead ? x.GetMethod!.IsAbstract : x.SetMethod!.IsAbstract,
206
IsVirtual = x.CanRead ? x.GetMethod!.IsVirtual : x.SetMethod!.IsVirtual,
0 commit comments