Table of contents
Collapse the table of content
Expand the table of content

FSharpValue.MakeFunction Method (F#)

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

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)


functionType Type: System.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.


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

Reflection.FSharpValue Class (F#)

Microsoft.FSharp.Reflection Namespace (F#)

© 2020 Microsoft