Table of contents
Collapse the table of content
Expand the table of content<^T> Function (F#)

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

Converts the argument to signed 32-bit integer (int). This is a direct conversion for all primitive numeric types. The operation requires an appropriate static conversion method on the input type.

Namespace/Module Path: Microsoft.FSharp.Linq.Nullable

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


// Signature:
int : Nullable<^T> -> Nullable<int> when ^T with static member op_Explicit and ^T : (new : unit ->  ^T) and ^T : struct and ^T :> ValueType

// Usage: value


value Type: System.Nullable`1<^T>

The input value.

Return Value

The converted int.


This function is named ToInt in the .NET assembly. If accessing the member from a .NET language other than F#, or through reflection, use this name.


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

Version Information

F# Core Library Versions

Supported in: 4.0, Portable

See Also

Linq.Nullable Module (F#)

Microsoft.FSharp.Linq Namespace (F#)

Operators.byte<^T> Function (F#)

© 2020 Microsoft