Header menu logo FSharp.Core

AllowNullLiteralAttribute Type

Adding this attribute to a type lets the 'null' literal be used for the type within F# code. This attribute may only be added to F#-defined class or interface types.

Constructors

Constructor Description

AllowNullLiteralAttribute(value)

Full Usage: AllowNullLiteralAttribute(value)

Parameters:
Returns: AllowNullLiteralAttribute AllowNullLiteralAttribute

Creates an instance of the attribute with the specified value

value : bool
Returns: AllowNullLiteralAttribute

AllowNullLiteralAttribute

AllowNullLiteralAttribute()

Full Usage: AllowNullLiteralAttribute()

Returns: AllowNullLiteralAttribute AllowNullLiteralAttribute

Creates an instance of the attribute

Returns: AllowNullLiteralAttribute

AllowNullLiteralAttribute

Instance members

Instance member Description

this.Value

Full Usage: this.Value

Returns: bool

The value of the attribute, indicating whether the type allows the null literal or not

Returns: bool

Type something to start searching.