Table of contents
TOC
Collapse the table of content
Expand the table of content

FSharpValue.PreComputeTupleConstructorInfo Method (F#)

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

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)

Syntax

// Signature:
static member PreComputeTupleConstructorInfo : Type -> ConstructorInfo * Type option

// Usage:
FSharpValue.PreComputeTupleConstructorInfo (tupleType)

Parameters

tupleType Type: System.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 System.Reflection.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

See Also

Reflection.FSharpValue Class (F#)

Microsoft.FSharp.Reflection Namespace (F#)

© 2019 Microsoft