C# 클래스 PERWAPI.MethodDef

Descriptor for a method defined in THIS assembly/module IL .method
상속: Method
파일 보기 프로젝트 열기: xored/f4 1 사용 예제들

공개 메소드들

메소드 설명
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