C# Класс PEAPI.MethodDef

Descriptor for a method defined in THIS assembly/module IL .method
Наследование: Method
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddCallConv() публичный Метод

public AddCallConv ( CallConv cconv ) : void
cconv CallConv
Результат void

AddGenericParameter() публичный Метод

Add a named generic type parameter
public AddGenericParameter ( short index, string name ) : GenericParameter
index short
name string
Результат GenericParameter

AddGenericParameter() публичный Метод

Add a named generic type parameter with attributes
public AddGenericParameter ( short index, string name, GenericParamAttributes attr ) : GenericParameter
index short
name string
attr GenericParamAttributes
Результат GenericParameter

AddImplAttribute() публичный Метод

Add some implementation attributes to this method descriptor
public AddImplAttribute ( ImplAttr ia ) : void
ia ImplAttr the attributes to be added
Результат void

AddLocals() публичный Метод

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
Результат void

AddMethAttribute() публичный Метод

Add some attributes to this method descriptor
public AddMethAttribute ( MethAttr ma ) : void
ma MethAttr the attributes to be added
Результат void

AddPInvokeInfo() публичный Метод

public AddPInvokeInfo ( ModuleRef scope, string methName, PInvokeAttr callAttr ) : void
scope ModuleRef
methName string
callAttr PInvokeAttr
Результат void

AddRetTypeMarshallInfo() публичный Метод

public AddRetTypeMarshallInfo ( NativeType marshallType ) : void
marshallType NativeType
Результат void

CreateCodeBuffer() публичный Метод

Create a code buffer for this method to add the IL instructions to
public CreateCodeBuffer ( ) : PEAPI.CILInstructions
Результат PEAPI.CILInstructions

DeclareEntryPoint() публичный Метод

Mark this method as having an entry point
public DeclareEntryPoint ( ) : void
Результат void

MakeVarArgSignature() публичный Метод

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
Результат MethodRef

SetMaxStack() публичный Метод

Set the maximum stack height for this method
public SetMaxStack ( int maxStack ) : void
maxStack int the maximum height of the stack
Результат void