PropertyModel.IsNullable Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the property type is nullable.
public:
property bool IsNullable { bool get(); };
public bool IsNullable { get; }
member this.IsNullable : bool
Public ReadOnly Property IsNullable As Boolean
Property Value
Remarks
For value types, this is true when the type is Nullable<T>. For reference types on .NET 6+, this uses NRT annotations via NullabilityInfoContext when a PropertyInfo is available (that is, during POCO mapping); otherwise, reference types are assumed nullable.