diff --git a/src/SourceGeneration.Reflection/SourceReflector.cs b/src/SourceGeneration.Reflection/SourceReflector.cs index 03fb7f0..9c356e5 100644 --- a/src/SourceGeneration.Reflection/SourceReflector.cs +++ b/src/SourceGeneration.Reflection/SourceReflector.cs @@ -200,7 +200,7 @@ private static SourceTypeInfo CreateSourceTypeInfo( PropertyType = x.PropertyType, IsStatic = x.GetMethod?.IsStatic == true || x.SetMethod?.IsStatic == true, CanRead = x.CanRead, - CanWrite = x.CanRead, + CanWrite = x.CanWrite, IsRequired = x.GetCustomAttribute() != null, IsAbstract = x.CanRead ? x.GetMethod!.IsAbstract : x.SetMethod!.IsAbstract, IsVirtual = x.CanRead ? x.GetMethod!.IsVirtual : x.SetMethod!.IsVirtual,