Table of contents
Collapse the table of content
Expand the table of content

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

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

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

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Microsoft.FSharp.Core Namespace (F#)

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

© 2019 Microsoft