Show / Hide Table of Contents

    Class DelegateHelpers

    Represents the delegate helpers.

    Inheritance
    Object
    DelegateHelpers
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Platform.Reflection
    Assembly: Platform.Reflection.dll
    Syntax
    public static class DelegateHelpers

    Methods

    | Improve this Doc View Source

    Compile<TDelegate>(Action<ILGenerator>)

    Compiles the emit code.

    Declaration
    public static TDelegate Compile<TDelegate>(Action<ILGenerator> emitCode)
        where TDelegate : Delegate
    Parameters
    Type Name Description
    Action<ILGenerator> emitCode

    The emit code.

    Returns
    Type Description
    TDelegate

    The delegate

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    | Improve this Doc View Source

    Compile<TDelegate>(Action<ILGenerator>, Boolean)

    Compiles the emit code.

    Declaration
    public static TDelegate Compile<TDelegate>(Action<ILGenerator> emitCode, bool typeMemberMethod)
        where TDelegate : Delegate
    Parameters
    Type Name Description
    Action<ILGenerator> emitCode

    The emit code.

    Boolean typeMemberMethod

    The type member method.

    Returns
    Type Description
    TDelegate

    The delegate.

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    | Improve this Doc View Source

    CompileDynamicMethod<TDelegate>(Action<ILGenerator>)

    Compiles the dynamic method using the specified emit code.

    Declaration
    public static TDelegate CompileDynamicMethod<TDelegate>(Action<ILGenerator> emitCode)
    Parameters
    Type Name Description
    Action<ILGenerator> emitCode

    The emit code.

    Returns
    Type Description
    TDelegate

    The delegate

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    | Improve this Doc View Source

    CompileOrDefault<TDelegate>(Action<ILGenerator>)

    Compiles the or default using the specified emit code.

    Declaration
    public static TDelegate CompileOrDefault<TDelegate>(Action<ILGenerator> emitCode)
        where TDelegate : Delegate
    Parameters
    Type Name Description
    Action<ILGenerator> emitCode

    The emit code.

    Returns
    Type Description
    TDelegate

    The delegate

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    | Improve this Doc View Source

    CompileOrDefault<TDelegate>(Action<ILGenerator>, Boolean)

    Compiles the or default using the specified emit code.

    Declaration
    public static TDelegate CompileOrDefault<TDelegate>(Action<ILGenerator> emitCode, bool typeMemberMethod)
        where TDelegate : Delegate
    Parameters
    Type Name Description
    Action<ILGenerator> emitCode

    The emit code.

    Boolean typeMemberMethod

    The type member method.

    Returns
    Type Description
    TDelegate

    The delegate.

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    | Improve this Doc View Source

    CompileTypeMemberMethod<TDelegate>(Action<ILGenerator>)

    Compiles the type member method using the specified emit code.

    Declaration
    public static TDelegate CompileTypeMemberMethod<TDelegate>(Action<ILGenerator> emitCode)
    Parameters
    Type Name Description
    Action<ILGenerator> emitCode

    The emit code.

    Returns
    Type Description
    TDelegate

    The delegate

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX