FSharpValue.PreComputeUnionConstructor 方法 (F#)
會產生建構 discriminated 聯集的值,為特定的聯集大小寫的函式。
命名空間/模組路徑: Microsoft.FSharp.Reflection
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
static member PreComputeUnionConstructor : UnionCaseInfo * ?BindingFlags -> obj [] -> obj
// Usage:
FSharpValue.PreComputeUnionConstructor (unionCase)
FSharpValue.PreComputeUnionConstructor (unionCase, bindingFlags = bindingFlags)
參數
unionCase
型別:UnionCaseInfo對聯集的描述。
bindingFlags
型別:BindingFlags選擇性的繫結旗標。
傳回值
建構所指定聯集之值的函式。
平台
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