Udostępnij za pośrednictwem


Core.option<'T> Type Abbreviation (F#)

The type of optional values. When used from other .NET Framework languages the empty option is the null value. This type is a type abbreviation for Option.

Namespace/Module Path: Microsoft.FSharp.Core

Assembly: FSharp.Core (in FSharp.Core.dll)

type option<'T> = Option<'T>

Remarks

Use the constructors Some and None to create values of this type. Use the values in the Option module to manipulate values of this type, or pattern match against the values directly. None values will appear as the value null to other .NET Framework languages. Instance methods on this type will appear as static methods to other .NET Framework languages due to the use of null as a value representation.

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Microsoft.FSharp.Core Namespace (F#)

Core.Option<'T> Union (F#)