共用方式為


FuncConvert.ToFSharpFunc<'T> 方法 (F#)

轉換指定的 Action<T>委派物件 是 F # 函式值。

命名空間/模組路徑:Microsoft.FSharp.Core

組件:FSharp.Core (在 FSharp.Core.dll 中)

// Signature:
static member ToFSharpFunc : Action<'T> -> 'T -> unit

// Usage:
FuncConvert.ToFSharpFunc (action)

參數

  • action
    型別:Action<T><'T>

    輸入動作。

傳回值

F# 函式。

平台

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

請參閱

參考

Core.FuncConvert 類別 (F#)

Microsoft.FSharp.Core 命名空間 (F#)