FSharpValue.PreComputeTupleConstructorInfo Method (F#)
Gets a method that constructs objects of the given tuple type. For small tuples, no additional type will be returned.
Namespace/Module Path: Microsoft.FSharp.Reflection
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
static member PreComputeTupleConstructorInfo : Type -> ConstructorInfo * Type option
// Usage:
FSharpValue.PreComputeTupleConstructorInfo (tupleType)
Parameters
tupleType
Type: TypeThe input tuple type.
Return Value
The description of the tuple type constructor and an optional extra type for large tuples.
Remarks
For large tuples, an additional type is returned indicating that a nested encoding has been used for the tuple type. In this case the suffix portion of the tuple type has the given type and an object of this type must be created and passed as the last argument to the ConstructorInfo. A recursive call to PreComputeTupleConstructorInfo can be used to determine the constructor for that the suffix type.
Platforms
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Version Information
F# Core Library Versions
Supported in: 2.0, 4.0, Portable