DefaultValueAttribute Type
Adding this attribute to a field declaration means that the field is not initialized. During type checking a constraint is asserted that the field type supports 'null'. If the 'check' value is false then the constraint is not asserted.
Constructors
Constructor |
Description
|
Full Usage:
DefaultValueAttribute(check)
Parameters:
bool
-
Indicates whether to assert that the field type supports null .
Returns: DefaultValueAttribute
DefaultValueAttribute
|
Creates an instance of the attribute
|
|
Creates an instance of the attribute
|
Instance members
Instance member |
Description
|
|
Indicates if a constraint is asserted that the field type supports 'null'
|