Bagikan melalui


ITypeProvider.GetInvokerExpression Method (F#)

Called by the compiler to ask for an Expression tree to replace the given MethodBase with.

Namespace/Module Path: Microsoft.FSharp.Core.CompilerServices

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

// Signature:
abstract this.GetInvokerExpression : MethodBase * Quotations.Expr [] -> Quotations.Expr

// Usage:
iTypeProvider.GetInvokerExpression (syntheticMethodBase, parameters)

Parameters

  • syntheticMethodBase
    Type: MethodBase

    MethodBase that was given to the compiler by a type returned by a GetType(s) call.

  • parameters
    Type: Quotations.Expr []

    Expressions that represent the parameters to this call.

Return Value

An Expression tree that the compiler will use in place of the given method base.

Platforms

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

Version Information

F# Core Library Versions

Supported in: 4.0Supported in: 4.0, Portable

See Also

Reference

CompilerServices.ITypeProvider Interface (F#)

Microsoft.FSharp.Core.CompilerServices Namespace (F#)