Show / Hide Table of Contents

    Interface IILReferenceBag

    An IL inline reference bag used for ILContexts.

    Namespace: MonoMod.Cil
    Assembly: MonoMod.Utils.dll
    Syntax
    public interface IILReferenceBag

    Methods

    Clear<T>(Int32)

    Remove the object with the given ID from the bag, essentially clearing the ID's slot.

    Declaration
    void Clear<T>(int id)
    Parameters
    Type Name Description
    System.Int32 id

    The object ID.

    Type Parameters
    Name Description
    T

    The object type.

    Get<T>(Int32)

    Get the object for the given ID.

    Declaration
    T Get<T>(int id)
    Parameters
    Type Name Description
    System.Int32 id

    The object ID.

    Returns
    Type Description
    T

    The stored object.

    Type Parameters
    Name Description
    T

    The object type.

    GetDelegateInvoker<T>()

    Get a MethodInfo invoking a delegate of the given type, with the delegate at the top of the stack. Used by EmitDelegate<T>(T).

    Declaration
    MethodInfo GetDelegateInvoker<T>()
        where T : Delegate
    Returns
    Type Description
    System.Reflection.MethodInfo

    A MethodInfo invoking a delegate of the given type.

    Type Parameters
    Name Description
    T

    The delegate type.

    GetGetter<T>()

    Get a MethodInfo for the getter.

    Declaration
    MethodInfo GetGetter<T>()
    Returns
    Type Description
    System.Reflection.MethodInfo

    The getter method.

    Type Parameters
    Name Description
    T

    The object type.

    Store<T>(T)

    Store a new object.

    Declaration
    int Store<T>(T t)
    Parameters
    Type Name Description
    T t

    The object to be stored.

    Returns
    Type Description
    System.Int32

    An ID to be used for all further operations.

    Type Parameters
    Name Description
    T

    The object type.

    Back to top Yet another C# modding swiss army knife.