C# Class PERWAPI.Method

Base class for Method Descriptors
Inheritance: Member
ファイルを表示 Open project: xored/f4 Class Usage Examples

Protected Properties

Property Type Description
genericParams System.Collections.ArrayList
sig MethSig

Private Properties

Property Type Description
AddGenericParam void
AddRetType void
DeleteGenericParam void
FindGenericParam int
GetSig MethSig
HasNameAndSig bool
HasNameAndSig bool
Method System
Method System
NameString string
SetGenericParams void
SetSig void
TypeSig void
WriteType void

Public Methods

Method Description
AddCallConv ( CallConv cconv ) : void

Add calling conventions to this method descriptor

AddGenericParam ( string name ) : GenericParam

Add a generic type to this method

GetCallConv ( ) : CallConv

Get the calling conventions for this method

GetGenericParam ( int ix ) : GenericParam
GetGenericParam ( string name ) : GenericParam

Get the descriptor for a generic type

GetGenericParamCount ( ) : int
GetGenericParams ( ) : PERWAPI.GenericParam[]
GetOptParTypes ( ) : Type[]

Get the optional parameter types (for varargs)

GetParTypes ( ) : Type[]

Get the types of the method parameters

GetRetType ( ) : Type

Get the method return type

Instantiate ( Type genTypes ) : MethodSpec
RemoveGenericParam ( int ix ) : void
RemoveGenericParam ( string name ) : void

Private Methods

Method Description
AddGenericParam ( GenericParam par ) : void
AddRetType ( Type retT ) : void

Set the return type

DeleteGenericParam ( int pos ) : void
FindGenericParam ( string name ) : int
GetSig ( ) : MethSig
HasNameAndSig ( string name, Type sigTypes ) : bool
HasNameAndSig ( string name, Type sigTypes, Type optPars ) : bool
Method ( string name ) : System
Method ( string methName, Type rType, Class paren ) : System
NameString ( ) : string
SetGenericParams ( GenericParam pars ) : void
SetSig ( MethSig sig ) : void
TypeSig ( MemoryStream sig ) : void
WriteType ( CILWriter output ) : void

Method Details

AddCallConv() public method

Add calling conventions to this method descriptor
public AddCallConv ( CallConv cconv ) : void
cconv CallConv
return void

AddGenericParam() public method

Add a generic type to this method
public AddGenericParam ( string name ) : GenericParam
name string the name of the generic type
return GenericParam

GetCallConv() public method

Get the calling conventions for this method
public GetCallConv ( ) : CallConv
return CallConv

GetGenericParam() public method

public GetGenericParam ( int ix ) : GenericParam
ix int
return GenericParam

GetGenericParam() public method

Get the descriptor for a generic type
public GetGenericParam ( string name ) : GenericParam
name string the name of the generic type
return GenericParam

GetGenericParamCount() public method

public GetGenericParamCount ( ) : int
return int

GetGenericParams() public method

public GetGenericParams ( ) : PERWAPI.GenericParam[]
return PERWAPI.GenericParam[]

GetOptParTypes() public method

Get the optional parameter types (for varargs)
public GetOptParTypes ( ) : Type[]
return Type[]

GetParTypes() public method

Get the types of the method parameters
public GetParTypes ( ) : Type[]
return Type[]

GetRetType() public method

Get the method return type
public GetRetType ( ) : Type
return Type

Instantiate() public method

public Instantiate ( Type genTypes ) : MethodSpec
genTypes Type
return MethodSpec

RemoveGenericParam() public method

public RemoveGenericParam ( int ix ) : void
ix int
return void

RemoveGenericParam() public method

public RemoveGenericParam ( string name ) : void
name string
return void

Property Details

genericParams protected_oe property

protected ArrayList,System.Collections genericParams
return System.Collections.ArrayList

sig protected_oe property

protected MethSig,PERWAPI sig
return MethSig