Core.Option<'T> Union (F#)
Specifies the type of optional values, which you use when there might or might not be a value.
Namespace/Module Path: Microsoft.FSharp.Core
Assembly: FSharp.Core (in FSharp.Core.dll)
[<DefaultAugmentation(false)>] [<StructuralEquality>] [<StructuralComparison>] type Option<'T> = | None | Some of 'T with interface IStructuralEquatable interface IComparable interface IComparable interface IStructuralComparable static member Some : 'T -> 'T option member this.IsNone : bool member this.IsSome : bool static member None : 'T option member this.Value : 'T end
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 appear as the value null to other .NET Framework languages. Instance methods of this type appear as static methods to other .NET Framework languages because of the use of null as a value representation.
For an overview of options, see Options (F#).
This type is named FSharpOption in compiled assemblies. If you are accessing the type from a language other than F#, or through reflection, use this name.