diff --git a/src/MiniValidationPlus/NonNullablePropertyHelper.cs b/src/MiniValidationPlus/NonNullablePropertyHelper.cs index 7475280..6f0d977 100644 --- a/src/MiniValidationPlus/NonNullablePropertyHelper.cs +++ b/src/MiniValidationPlus/NonNullablePropertyHelper.cs @@ -24,7 +24,7 @@ public bool IsNonNullableReferenceType(PropertyInfo propertyInfo) } var nullabilityInfo = nullabilityContext.Create(propertyInfo); - return nullabilityInfo.WriteState is not NullabilityState.Nullable; + return nullabilityInfo.ReadState is not NullabilityState.Nullable; } } }