Home NullableAttribute Class
NullableAttribute Class
Cancel

NullableAttribute Class

Namespace: Json.Schema.Generation

Inheritance: NullableAttribute 🡒 ConditionalAttribute 🡒 Attribute 🡒 object

Implemented interfaces:

  • INestableAttribute
  • IAttributeHandler

Overrides the nullability declared in code and either adds or removes null in the type keyword.

Properties

NameTypeSummary
ConditionGroupobjectIdentifies the condition group under which this attribute applies.
GenericParameterintThe index of the parameter to which the attribute should apply. Default is -1 to indicate the root.
IsNullableboolGets whether null should be included in the type keyword.
TypeIdobject 

Constructors

NullableAttribute(bool isNullable)

Creates a new Json.Schema.Generation.NullableAttribute instance.

Declaration

1
public NullableAttribute(bool isNullable)
ParameterTypeDescription
isNullableboolWhether null should be included in the type keyword.
Contents