Class TypeBuilderExtensions
Represents the type builder extensions.
Inherited Members
Namespace: Platform.Reflection
Assembly: Platform.Reflection.dll
Syntax
public static class TypeBuilderExtensions
  Fields
| Improve this Doc View SourceDefaultFinalVirtualMethodAttributes
The hide by sig.
Declaration
public static readonly MethodAttributes DefaultFinalVirtualMethodAttributes
  Field Value
| Type | Description | 
|---|---|
| MethodAttributes | 
DefaultMethodImplAttributes
The aggressive inlining.
Declaration
public static readonly MethodImplAttributes DefaultMethodImplAttributes
  Field Value
| Type | Description | 
|---|---|
| MethodImplAttributes | 
DefaultStaticMethodAttributes
The static.
Declaration
public static readonly MethodAttributes DefaultStaticMethodAttributes
  Field Value
| Type | Description | 
|---|---|
| MethodAttributes | 
Methods
| Improve this Doc View SourceEmitFinalVirtualMethod<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. 
  | 
      
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. 
  | 
      
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. 
  | 
      
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. 
  |