C# Class IKVM.Reflection.Emit.MethodBuilder

Inheritance: MethodInfo
Afficher le fichier Open project: mono/ikvm Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddDeclarativeSecurity ( System securityAction, System permissionSet ) : void
securityAction System
permissionSet System
Résultat void

CreateMethodBody() public méthode

public CreateMethodBody ( byte il, int count ) : void
il byte
count int
Résultat void

DefineGenericParameters() public méthode

public DefineGenericParameters ( ) : IKVM.Reflection.Emit.GenericTypeParameterBuilder[]
Résultat IKVM.Reflection.Emit.GenericTypeParameterBuilder[]

DefineParameter() public méthode

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

GetGenericArguments() public méthode

public GetGenericArguments ( ) : System.Type[]
Résultat System.Type[]

GetGenericMethodDefinition() public méthode

public GetGenericMethodDefinition ( ) : MethodInfo
Résultat MethodInfo

GetILGenerator() public méthode

public GetILGenerator ( ) : ILGenerator
Résultat ILGenerator

GetILGenerator() public méthode

public GetILGenerator ( int streamSize ) : ILGenerator
streamSize int
Résultat ILGenerator

GetMethodBody() public méthode

public GetMethodBody ( ) : MethodBody
Résultat MethodBody

GetMethodImplementationFlags() public méthode

public GetMethodImplementationFlags ( ) : MethodImplAttributes
Résultat MethodImplAttributes

GetModule() public méthode

public GetModule ( ) : Module
Résultat Module

GetParameters() public méthode

public GetParameters ( ) : ParameterInfo[]
Résultat ParameterInfo[]

GetToken() public méthode

public GetToken ( ) : IKVM.Reflection.Emit.MethodToken
Résultat IKVM.Reflection.Emit.MethodToken

MakeGenericMethod() public méthode

public MakeGenericMethod ( ) : MethodInfo
Résultat MethodInfo

SetCustomAttribute() public méthode

public SetCustomAttribute ( ConstructorInfo con, byte binaryAttribute ) : void
con ConstructorInfo
binaryAttribute byte
Résultat void

SetCustomAttribute() public méthode

public SetCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
Résultat void

SetImplementationFlags() public méthode

public SetImplementationFlags ( MethodImplAttributes attributes ) : void
attributes MethodImplAttributes
Résultat void

SetMethodBody() public méthode

public SetMethodBody ( byte il, int maxStack, byte localSignature, IEnumerable exceptionHandlers, IEnumerable tokenFixups ) : void
il byte
maxStack int
localSignature byte
exceptionHandlers IEnumerable
tokenFixups IEnumerable
Résultat void

SetParameters() public méthode

public SetParameters ( ) : void
Résultat void

SetReturnType() public méthode

public SetReturnType ( Type returnType ) : void
returnType System.Type
Résultat void

SetSignature() public méthode

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
Résultat void

__AddDeclarativeSecurity() public méthode

public __AddDeclarativeSecurity ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
Résultat void

__AddUnmanagedExport() public méthode

public __AddUnmanagedExport ( string name, int ordinal ) : void
name string
ordinal int
Résultat void

__ReleaseILGenerator() public méthode

public __ReleaseILGenerator ( ) : void
Résultat void

__SetAttributes() public méthode

public __SetAttributes ( MethodAttributes attributes ) : void
attributes MethodAttributes
Résultat void

__SetCallingConvention() public méthode

public __SetCallingConvention ( CallingConventions callingConvention ) : void
callingConvention CallingConventions
Résultat void

__SetSignature() public méthode

public __SetSignature ( Type returnType, CustomModifiers returnTypeCustomModifiers, Type parameterTypes, CustomModifiers parameterTypeCustomModifiers ) : void
returnType Type
returnTypeCustomModifiers CustomModifiers
parameterTypes Type
parameterTypeCustomModifiers CustomModifiers
Résultat void