Header menu logo FSharp.Core

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

DefaultValueAttribute(check)

Full Usage: DefaultValueAttribute(check)

Parameters:
    check : bool - Indicates whether to assert that the field type supports null.

Returns: DefaultValueAttribute DefaultValueAttribute

Creates an instance of the attribute

check : bool

Indicates whether to assert that the field type supports null.

Returns: DefaultValueAttribute

DefaultValueAttribute

DefaultValueAttribute()

Full Usage: DefaultValueAttribute()

Returns: DefaultValueAttribute DefaultValueAttribute

Creates an instance of the attribute

Returns: DefaultValueAttribute

DefaultValueAttribute

Instance members

Instance member Description

this.Check

Full Usage: this.Check

Returns: bool

Indicates if a constraint is asserted that the field type supports 'null'

Returns: bool

Type something to start searching.