Expand Minimize

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>

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.

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft