次の方法で共有


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

参照

その他の技術情報

Reflection.FSharpValue クラス (F#)

Microsoft.FSharp.Reflection 名前空間 (F#)