Show / Hide Table of Contents

    Class DMDGenerator<TSelf>

    A DynamicMethodDefinition "generator", responsible for generating a runtime MethodInfo from a DMD MethodDefinition.

    Inheritance
    System.Object
    DMDGenerator<TSelf>
    DMDCecilGenerator
    DMDEmitDynamicMethodGenerator
    Namespace: MonoMod.Utils
    Assembly: MonoMod.Utils.dll
    Syntax
    public abstract class DMDGenerator<TSelf> : Object, _IDMDGenerator where TSelf : DMDGenerator<TSelf>, new()
    Type Parameters
    Name Description
    TSelf

    Constructors

    DMDGenerator()

    Declaration
    protected DMDGenerator()

    Methods

    _Generate(DynamicMethodDefinition, Object)

    Declaration
    protected abstract MethodInfo _Generate(DynamicMethodDefinition dmd, object context)
    Parameters
    Type Name Description
    DynamicMethodDefinition dmd
    System.Object context
    Returns
    Type Description
    System.Reflection.MethodInfo

    Generate(DynamicMethodDefinition, Object)

    Declaration
    public static MethodInfo Generate(DynamicMethodDefinition dmd, object context = null)
    Parameters
    Type Name Description
    DynamicMethodDefinition dmd
    System.Object context
    Returns
    Type Description
    System.Reflection.MethodInfo
    Back to top Yet another C# modding swiss army knife.