FSharpValue.PreComputeTupleConstructorInfo 方法 (F#)
取得方法,這個方法會建構所指定之 Tuple 型別的物件。 若為小型 Tuple,則不會傳回其他型別。
命名空間/模組路徑: Microsoft.FSharp.Reflection
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
static member PreComputeTupleConstructorInfo : Type -> ConstructorInfo * Type option
// Usage:
FSharpValue.PreComputeTupleConstructorInfo (tupleType)
參數
tupleType
型別:Type輸入 Tuple 型別。
傳回值
Tuple 型別建構函式的描述,以及大型 Tuple 的選擇性額外型別。
備註
若為大型 Tuple,則會額外傳回一個型別,表示已對 Tuple 型別使用巢狀編碼。 在這種情況下有序元組型別尾碼部份已指定的型別與這個型別的物件必須建立並做最後一個引數傳遞至 ConstructorInfo 遞迴呼叫 PreComputeTupleConstructorInfo可以用來判斷建構函式的後置字元類型
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本資訊
F# 執行階段
支援版本:2.0、4.0
Silverlight
支援版本:3