Share via


FSharpValue.MakeFunction Method (F#)

Creates a typed function from object from a dynamic function implementation.

Namespace/Module Path: Microsoft.FSharp.Reflection

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
static member MakeFunction : Type * (obj -> obj) -> obj

// Usage:
FSharpValue.MakeFunction (functionType, implementation)

Parameters

  • functionType
    Type: Type

    The function type of the implementation.

  • implementation
    Type: obj -> obj

    The untyped lambda of the function implementation.

Return Value

A typed function from the given dynamic implementation.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Reference

Reflection.FSharpValue Class (F#)

Microsoft.FSharp.Reflection Namespace (F#)