Show / Hide Table of Contents

    Class TypeBuilderExtensions

    Represents the type builder extensions.

    Inheritance
    Object
    TypeBuilderExtensions
    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 TypeBuilderExtensions

    Fields

    | Improve this Doc View Source

    DefaultFinalVirtualMethodAttributes

    The hide by sig.

    Declaration
    public static readonly MethodAttributes DefaultFinalVirtualMethodAttributes
    Field Value
    Type Description
    MethodAttributes
    | Improve this Doc View Source

    DefaultMethodImplAttributes

    The aggressive inlining.

    Declaration
    public static readonly MethodImplAttributes DefaultMethodImplAttributes
    Field Value
    Type Description
    MethodImplAttributes
    | Improve this Doc View Source

    DefaultStaticMethodAttributes

    The static.

    Declaration
    public static readonly MethodAttributes DefaultStaticMethodAttributes
    Field Value
    Type Description
    MethodAttributes

    Methods

    | Improve this Doc View Source

    EmitFinalVirtualMethod<TDelegate>(TypeBuilder, String, Action<ILGenerator>)

    Emits the final virtual method using the specified type.

    Declaration
    public static void EmitFinalVirtualMethod<TDelegate>(this TypeBuilder type, string methodName, Action<ILGenerator> emitCode)
    Parameters
    Type Name Description
    TypeBuilder type

    The type.

    String methodName

    The method name.

    Action<ILGenerator> emitCode

    The emit code.

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    | Improve this Doc View Source

    EmitMethod(TypeBuilder, String, MethodAttributes, MethodImplAttributes, Type, Type[], Action<ILGenerator>)

    Emits the method using the specified type.

    Declaration
    public static void EmitMethod(this TypeBuilder type, string methodName, MethodAttributes methodAttributes, MethodImplAttributes methodImplAttributes, Type returnType, Type[] parameterTypes, Action<ILGenerator> emitCode)
    Parameters
    Type Name Description
    TypeBuilder type

    The type.

    String methodName

    The method name.

    MethodAttributes methodAttributes

    The method attributes.

    MethodImplAttributes methodImplAttributes

    The method impl attributes.

    Type returnType

    The return type.

    Type[] parameterTypes

    The parameter types.

    Action<ILGenerator> emitCode

    The emit code.

    | Improve this Doc View Source

    EmitMethod<TDelegate>(TypeBuilder, String, MethodAttributes, MethodImplAttributes, Action<ILGenerator>)

    Emits the method using the specified type.

    Declaration
    public static void EmitMethod<TDelegate>(this TypeBuilder type, string methodName, MethodAttributes methodAttributes, MethodImplAttributes methodImplAttributes, Action<ILGenerator> emitCode)
    Parameters
    Type Name Description
    TypeBuilder type

    The type.

    String methodName

    The method name.

    MethodAttributes methodAttributes

    The method attributes.

    MethodImplAttributes methodImplAttributes

    The method impl attributes.

    Action<ILGenerator> emitCode

    The emit code.

    Type Parameters
    Name Description
    TDelegate

    The delegate.

    | Improve this Doc View Source

    EmitStaticMethod<TDelegate>(TypeBuilder, String, Action<ILGenerator>)

    Emits the static method using the specified type.

    Declaration
    public static void EmitStaticMethod<TDelegate>(this TypeBuilder type, string methodName, Action<ILGenerator> emitCode)
    Parameters
    Type Name Description
    TypeBuilder type

    The type.

    String methodName

    The method name.

    Action<ILGenerator> emitCode

    The emit code.

    Type Parameters
    Name Description
    TDelegate

    The delegate.

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