C# Class IKVM.Reflection.Emit.MethodBuilder

Inheritance: MethodInfo
Exibir arquivo Open project: mono/ikvm Class Usage Examples

Private Properties

Property Type Description
Bake void
CheckBaked void
CheckSig void
FixupToken void
GetCurrentToken int
GetGenericMethodArgument System.Type
GetGenericMethodArgumentCount int
ImportTo int
MethodBuilder System
SetDllImportPseudoCustomAttribute void
SetDllImportPseudoCustomAttribute void
SetMethodImplAttribute void
SetSignature void
WriteMethodDefRecord void
WriteParamRecords void

Public Methods

Method Description
AddDeclarativeSecurity ( System securityAction, System permissionSet ) : void
CreateMethodBody ( byte il, int count ) : void
DefineGenericParameters ( ) : IKVM.Reflection.Emit.GenericTypeParameterBuilder[]
DefineParameter ( int position, ParameterAttributes attributes, string strParamName ) : IKVM.Reflection.Emit.ParameterBuilder
GetGenericArguments ( ) : System.Type[]
GetGenericMethodDefinition ( ) : MethodInfo
GetILGenerator ( ) : ILGenerator
GetILGenerator ( int streamSize ) : ILGenerator
GetMethodBody ( ) : MethodBody
GetMethodImplementationFlags ( ) : MethodImplAttributes
GetModule ( ) : Module
GetParameters ( ) : ParameterInfo[]
GetToken ( ) : IKVM.Reflection.Emit.MethodToken
MakeGenericMethod ( ) : MethodInfo
SetCustomAttribute ( ConstructorInfo con, byte binaryAttribute ) : void
SetCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
SetImplementationFlags ( MethodImplAttributes attributes ) : void
SetMethodBody ( byte il, int maxStack, byte localSignature, IEnumerable exceptionHandlers, IEnumerable tokenFixups ) : void
SetParameters ( ) : void
SetReturnType ( Type returnType ) : void
SetSignature ( Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : void
__AddDeclarativeSecurity ( CustomAttributeBuilder customBuilder ) : void
__AddUnmanagedExport ( string name, int ordinal ) : void
__ReleaseILGenerator ( ) : void
__SetAttributes ( MethodAttributes attributes ) : void
__SetCallingConvention ( CallingConventions callingConvention ) : void
__SetSignature ( Type returnType, CustomModifiers returnTypeCustomModifiers, Type parameterTypes, CustomModifiers parameterTypeCustomModifiers ) : void

Private Methods

Method Description
Bake ( ) : void
CheckBaked ( ) : void
CheckSig ( ) : void
FixupToken ( int token, int &parameterToken ) : void
GetCurrentToken ( ) : int
GetGenericMethodArgument ( int index ) : Type
GetGenericMethodArgumentCount ( ) : int
ImportTo ( ModuleBuilder other ) : int
MethodBuilder ( TypeBuilder typeBuilder, string name, MethodAttributes attributes, CallingConventions callingConvention ) : System
SetDllImportPseudoCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
SetDllImportPseudoCustomAttribute ( string dllName, string entryName, CallingConvention nativeCallConv, CharSet nativeCharSet, bool bestFitMapping, bool throwOnUnmappableChar, bool setLastError, bool preserveSig, bool exactSpelling ) : void
SetMethodImplAttribute ( CustomAttributeBuilder customBuilder ) : void
SetSignature ( Type returnType, Type parameterTypes, PackedCustomModifiers customModifiers ) : void
WriteMethodDefRecord ( int baseRVA, IKVM.Reflection.Writer.MetadataWriter mw, int &paramList ) : void
WriteParamRecords ( IKVM.Reflection.Writer.MetadataWriter mw ) : void

Method Details

AddDeclarativeSecurity() public method

public AddDeclarativeSecurity ( System securityAction, System permissionSet ) : void
securityAction System
permissionSet System
return void

CreateMethodBody() public method

public CreateMethodBody ( byte il, int count ) : void
il byte
count int
return void

DefineGenericParameters() public method

public DefineGenericParameters ( ) : IKVM.Reflection.Emit.GenericTypeParameterBuilder[]
return IKVM.Reflection.Emit.GenericTypeParameterBuilder[]

DefineParameter() public method

public DefineParameter ( int position, ParameterAttributes attributes, string strParamName ) : IKVM.Reflection.Emit.ParameterBuilder
position int
attributes ParameterAttributes
strParamName string
return IKVM.Reflection.Emit.ParameterBuilder

GetGenericArguments() public method

public GetGenericArguments ( ) : System.Type[]
return System.Type[]

GetGenericMethodDefinition() public method

public GetGenericMethodDefinition ( ) : MethodInfo
return MethodInfo

GetILGenerator() public method

public GetILGenerator ( ) : ILGenerator
return ILGenerator

GetILGenerator() public method

public GetILGenerator ( int streamSize ) : ILGenerator
streamSize int
return ILGenerator

GetMethodBody() public method

public GetMethodBody ( ) : MethodBody
return MethodBody

GetMethodImplementationFlags() public method

public GetMethodImplementationFlags ( ) : MethodImplAttributes
return MethodImplAttributes

GetModule() public method

public GetModule ( ) : Module
return Module

GetParameters() public method

public GetParameters ( ) : ParameterInfo[]
return ParameterInfo[]

GetToken() public method

public GetToken ( ) : IKVM.Reflection.Emit.MethodToken
return IKVM.Reflection.Emit.MethodToken

MakeGenericMethod() public method

public MakeGenericMethod ( ) : MethodInfo
return MethodInfo

SetCustomAttribute() public method

public SetCustomAttribute ( ConstructorInfo con, byte binaryAttribute ) : void
con ConstructorInfo
binaryAttribute byte
return void

SetCustomAttribute() public method

public SetCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
return void

SetImplementationFlags() public method

public SetImplementationFlags ( MethodImplAttributes attributes ) : void
attributes MethodImplAttributes
return void

SetMethodBody() public method

public SetMethodBody ( byte il, int maxStack, byte localSignature, IEnumerable exceptionHandlers, IEnumerable tokenFixups ) : void
il byte
maxStack int
localSignature byte
exceptionHandlers IEnumerable
tokenFixups IEnumerable
return void

SetParameters() public method

public SetParameters ( ) : void
return void

SetReturnType() public method

public SetReturnType ( Type returnType ) : void
returnType System.Type
return void

SetSignature() public method

public SetSignature ( Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : void
returnType System.Type
returnTypeRequiredCustomModifiers System.Type
returnTypeOptionalCustomModifiers System.Type
parameterTypes System.Type
parameterTypeRequiredCustomModifiers System.Type
parameterTypeOptionalCustomModifiers System.Type
return void

__AddDeclarativeSecurity() public method

public __AddDeclarativeSecurity ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
return void

__AddUnmanagedExport() public method

public __AddUnmanagedExport ( string name, int ordinal ) : void
name string
ordinal int
return void

__ReleaseILGenerator() public method

public __ReleaseILGenerator ( ) : void
return void

__SetAttributes() public method

public __SetAttributes ( MethodAttributes attributes ) : void
attributes MethodAttributes
return void

__SetCallingConvention() public method

public __SetCallingConvention ( CallingConventions callingConvention ) : void
callingConvention CallingConventions
return void

__SetSignature() public method

public __SetSignature ( Type returnType, CustomModifiers returnTypeCustomModifiers, Type parameterTypes, CustomModifiers parameterTypeCustomModifiers ) : void
returnType Type
returnTypeCustomModifiers CustomModifiers
parameterTypes Type
parameterTypeCustomModifiers CustomModifiers
return void