C# Класс PERWAPI.MethodDef

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

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

Метод Описание
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
AddSecurity ( DeclSecurity sec ) : void
AddSecurity ( SecurityAction act, byte permissionSet ) : void
CreateCodeBuffer ( ) : CILInstructions

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

DeclareEntryPoint ( ) : void

Mark this method as having an entry point

GetCodeBuffer ( ) : CILInstructions

Get the CIL code buffer for this method

GetImplAttributes ( ) : ImplAttr

Property to get and set the implementation attributes for this method

GetLocals ( ) : Local[]

Retrieve the locals for this method

GetMaxStack ( ) : int

Retrieve the maximum size of the stack for the code of this method

GetMethAttributes ( ) : MethAttr

Property to get and set the attributes for this method

GetParams ( ) : PERWAPI.Param[]

Get the parameters of this method

GetSecurity ( ) : PERWAPI.DeclSecurity[]
GetVarArgSignature ( ) : MethodRef
HasEntryPoint ( ) : bool

Does this method have an entrypoint?

MakeRefOf ( ) : MethodRef

Get the MethodRef equivalent to this MethodDef. If one does not exist, then create it.

MakeVarArgSignature ( Type optPars ) : MethodRef

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

RefOf ( ) : MethodRef

Get the MethodRef equivalent to this MethodDef. Assumes that one has been created.

RemoveEntryPoint ( ) : void

Remove the entry point from this method

RemoveLocals ( ) : void

Remove all the locals from this method

RemovePInvokeInfo ( ) : void
RemoveSecurity ( ) : void
SetImplAttributes ( ImplAttr ia ) : void
SetMaxStack ( int maxStack ) : void

Set the maximum stack height for this method

SetMethAttributes ( MethAttr ma ) : void
SetParams ( Param pars ) : void

Set the parameters for this method

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

Метод Описание
AddGenericsToTable ( MetaDataOut md ) : void
AddPInvokeInfo ( ImplMap impl ) : void
AddVarArgSig ( MethodRef meth ) : void
BuildCILInfo ( CILWriter output ) : void
BuildSignatures ( MetaDataOut md ) : void
BuildTables ( MetaDataOut md ) : void
ChangeRefsToDefs ( ClassDef newPar, ClassDef oldTypes ) : void
DoCode ( PEReader buff ) : void
DoPars ( PEReader buff, bool resolvePars ) : void
GetCodedIx ( CIx code ) : uint
GetMethodRefs ( PEReader buff, uint num, ClassRef parent ) : void
GetScope ( ) : PEFile
InsertGenericParam ( GenericParam genPar ) : void
IsPublicOrProtected ( ushort methFlags ) : bool
MethodDef ( ClassDef paren, MethSig mSig, Param pars ) : System
MethodDef ( ClassSpec paren, MethSig mSig, Param pars ) : System
MethodDef ( PEReader buff ) : System
MethodDef ( string name, Type retType, Param pars, ClassDef paren ) : System
Read ( PEReader buff, TableRow methDefs ) : void
Resolve ( PEReader buff ) : void
Size ( MetaData md ) : uint
TypeSig ( MemoryStream sigStream ) : void
Write ( CILWriter output ) : void
Write ( PEWriter output ) : void
isDef ( ) : bool

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

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

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

public AddSecurity ( DeclSecurity sec ) : void
sec DeclSecurity
Результат void

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

public AddSecurity ( SecurityAction act, byte permissionSet ) : void
act SecurityAction
permissionSet byte
Результат void

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

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

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

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

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

Get the CIL code buffer for this method
public GetCodeBuffer ( ) : CILInstructions
Результат CILInstructions

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

Property to get and set the implementation attributes for this method
public GetImplAttributes ( ) : ImplAttr
Результат ImplAttr

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

Retrieve the locals for this method
public GetLocals ( ) : Local[]
Результат Local[]

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

Retrieve the maximum size of the stack for the code of this method
public GetMaxStack ( ) : int
Результат int

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

Property to get and set the attributes for this method
public GetMethAttributes ( ) : MethAttr
Результат MethAttr

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

Get the parameters of this method
public GetParams ( ) : PERWAPI.Param[]
Результат PERWAPI.Param[]

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

public GetSecurity ( ) : PERWAPI.DeclSecurity[]
Результат PERWAPI.DeclSecurity[]

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

public GetVarArgSignature ( ) : MethodRef
Результат MethodRef

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

Does this method have an entrypoint?
public HasEntryPoint ( ) : bool
Результат bool

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

Get the MethodRef equivalent to this MethodDef. If one does not exist, then create it.
public MakeRefOf ( ) : MethodRef
Результат MethodRef

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

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

Get the MethodRef equivalent to this MethodDef. Assumes that one has been created.
public RefOf ( ) : MethodRef
Результат MethodRef

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

Remove the entry point from this method
public RemoveEntryPoint ( ) : void
Результат void

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

Remove all the locals from this method
public RemoveLocals ( ) : void
Результат void

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

public RemovePInvokeInfo ( ) : void
Результат void

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

public RemoveSecurity ( ) : void
Результат void

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

public SetImplAttributes ( ImplAttr ia ) : void
ia ImplAttr
Результат void

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

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

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

public SetMethAttributes ( MethAttr ma ) : void
ma MethAttr
Результат void

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

Set the parameters for this method
public SetParams ( Param pars ) : void
pars Param Descriptors of the parameters for this method
Результат void