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.
1 parent 86dc414 commit d6c5304Copy full SHA for d6c5304
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