Share via


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: Type

    The 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 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Reflection.FSharpValue Class (F#)

Microsoft.FSharp.Reflection Namespace (F#)