Skip to content

Commit a0746fb

Browse files
authored
Merge pull request #7 from BobbyCannon/CanWriteFix
fixed can write assignment
2 parents 86dc414 + d6c5304 commit a0746fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SourceGeneration.Reflection/SourceReflector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private static SourceTypeInfo CreateSourceTypeInfo(
200200
PropertyType = x.PropertyType,
201201
IsStatic = x.GetMethod?.IsStatic == true || x.SetMethod?.IsStatic == true,
202202
CanRead = x.CanRead,
203-
CanWrite = x.CanRead,
203+
CanWrite = x.CanWrite,
204204
IsRequired = x.GetCustomAttribute<System.Runtime.CompilerServices.RequiredMemberAttribute>() != null,
205205
IsAbstract = x.CanRead ? x.GetMethod!.IsAbstract : x.SetMethod!.IsAbstract,
206206
IsVirtual = x.CanRead ? x.GetMethod!.IsVirtual : x.SetMethod!.IsVirtual,

0 commit comments

Comments
 (0)