Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.