C# Class PEAPI.MethodDef

Descriptor for a method defined in THIS assembly/module IL .method
Inheritance: Method
Mostra file Open project: kumpera/mono Class Usage Examples

Public Methods

Method Description
AddCallConv ( CallConv cconv ) : void
AddGenericParameter ( short index, string name ) : GenericParameter

Add a named generic type parameter

AddGenericParameter ( short index, string name, GenericParamAttributes attr ) : GenericParameter

Add a named generic type parameter with attributes

AddImplAttribute ( ImplAttr ia ) : void

Add some implementation attributes to this method descriptor

AddLocals ( Local locals, bool initLocals ) : void

Add local variables to this method

AddMethAttribute ( MethAttr ma ) : void

Add some attributes to this method descriptor

AddPInvokeInfo ( ModuleRef scope, string methName, PInvokeAttr callAttr ) : void
AddRetTypeMarshallInfo ( NativeType marshallType ) : void
CreateCodeBuffer ( ) : PEAPI.CILInstructions

Create a code buffer for this method to add the IL instructions to

DeclareEntryPoint ( ) : void

Mark this method as having an entry point

MakeVarArgSignature ( Type optPars ) : MethodRef

Make a method reference descriptor for this method to be used as a callsite signature for this vararg method

SetMaxStack ( int maxStack ) : void

Set the maximum stack height for this method

Private Methods

Method Description
BuildTables ( MetaData md ) : void
GetCodedIx ( CIx code ) : uint
GetPars ( ) : PEAPI.Param[]
GetSigIx ( MetaData md ) : uint
MethodDef ( MetaData md, MethAttr mAttrSet, ImplAttr iAttrSet, string name, Param ret_param, Param pars ) : System
MethodDef ( MetaData md, string name, Param ret_param, Param pars ) : System
Size ( MetaData md ) : uint
TypeSig ( MemoryStream sig ) : void
Write ( PEAPI.FileImage output ) : void
ZeroRva ( ) : bool

Method Details

AddCallConv() public method

public AddCallConv ( CallConv cconv ) : void
cconv CallConv
return void

AddGenericParameter() public method

Add a named generic type parameter
public AddGenericParameter ( short index, string name ) : GenericParameter
index short
name string
return GenericParameter

AddGenericParameter() public method

Add a named generic type parameter with attributes
public AddGenericParameter ( short index, string name, GenericParamAttributes attr ) : GenericParameter
index short
name string
attr GenericParamAttributes
return GenericParameter

AddImplAttribute() public method

Add some implementation attributes to this method descriptor
public AddImplAttribute ( ImplAttr ia ) : void
ia ImplAttr the attributes to be added
return void

AddLocals() public method

Add local variables to this method
public AddLocals ( Local locals, bool initLocals ) : void
locals Local the locals to be added
initLocals bool are locals initialised to default values
return void

AddMethAttribute() public method

Add some attributes to this method descriptor
public AddMethAttribute ( MethAttr ma ) : void
ma MethAttr the attributes to be added
return void

AddPInvokeInfo() public method

public AddPInvokeInfo ( ModuleRef scope, string methName, PInvokeAttr callAttr ) : void
scope ModuleRef
methName string
callAttr PInvokeAttr
return void

AddRetTypeMarshallInfo() public method

public AddRetTypeMarshallInfo ( NativeType marshallType ) : void
marshallType NativeType
return void

CreateCodeBuffer() public method

Create a code buffer for this method to add the IL instructions to
public CreateCodeBuffer ( ) : PEAPI.CILInstructions
return PEAPI.CILInstructions

DeclareEntryPoint() public method

Mark this method as having an entry point
public DeclareEntryPoint ( ) : void
return void

MakeVarArgSignature() public method

Make a method reference descriptor for this method to be used as a callsite signature for this vararg method
public MakeVarArgSignature ( Type optPars ) : MethodRef
optPars Type the optional pars for the vararg method call
return MethodRef

SetMaxStack() public method

Set the maximum stack height for this method
public SetMaxStack ( int maxStack ) : void
maxStack int the maximum height of the stack
return void