FSharpValue.PreComputeUnionTagReader 方法 (F#)
產生讀取等位型別之標籤的函式。
**命名空間/模組路徑:**Microsoft.FSharp.Reflection
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
static member PreComputeUnionTagReader : Type * ?BindingFlags -> obj -> int
// Usage:
FSharpValue.PreComputeUnionTagReader (unionType)
FSharpValue.PreComputeUnionTagReader (unionType, bindingFlags = bindingFlags)
參數
unionType
型別:Type要最佳化讀取之等位的型別。
bindingFlags
型別:BindingFlags選擇性的繫結旗標。
傳回值
要讀取所指定等位型別之標籤的最佳化函式。
平台
Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2
版本資訊
F# 核心程式庫版本
支援版本:2.0, 4.0,可攜式執行檔 (PE)。