C# Class PERWAPI.Class

The base descriptor for a class
Inheritance: Type
Mostra file Open project: xored/f4 Class Usage Examples

Protected Properties

Property Type Description
fieldNames string[]
fields System.Collections.ArrayList
genericParams System.Collections.ArrayList
methods System.Collections.ArrayList
name string
nameIx uint
nestedClasses System.Collections.ArrayList
special bool

Public Methods

Method Description
GetFieldDesc ( string name ) : Field

Get the descriptor for the field "name" for this class

GetFieldDescs ( ) : PERWAPI.Field[]

Get all the fields for this class

GetMethodDesc ( string name ) : Method

Get the descriptor for the method "name" of this class

GetMethodDesc ( string name, Type parTypes ) : Method

Get the descriptor for the method called "name" with the signature "parTypes"

GetMethodDesc ( string name, Type parTypes, Type optParTypes ) : Method

Get the vararg method "name(parTypes,optTypes)" for this class

GetMethodDescs ( ) : PERWAPI.Method[]

Get all the methods for this class

GetMethodDescs ( string name ) : PERWAPI.Method[]

Get all the methods of this class called "name"

GetNestedClassCount ( ) : int

How many nested classes does this class have?

GetNestedClasses ( ) : PERWAPI.Class[]

Get any nested classes of this class

GetParent ( ) : MetaDataElement

Get the owing scope of this class

Instantiate ( Type genTypes ) : ClassSpec

Instantiate this generic type with the supplied types

MakeSpecial ( ) : void

Denote this class as "special" such as a default module class

MakeValueClass ( ) : void
Name ( ) : string

Get the name of this class

NameSpace ( ) : string

Get the namespace that includes this class

RemoveField ( string name ) : void

Remove the specified field from this class

RemoveMethod ( Method meth ) : void

Remove the specified method from this class

RemoveMethod ( int ix ) : void

Remove the specified method from this class

RemoveMethod ( string name ) : void

Remove the specified method from this class

RemoveMethod ( string name, Type parTypes ) : void

Remove the specified method from this class

RemoveMethod ( string name, Type parTypes, Type optTypes ) : void

Remove the specified method from this class

TypeName ( ) : string

Get the string representation of the qualified name of this class

Protected Methods

Method Description
FindField ( string name ) : Field
GetMeths ( string name ) : ArrayList

Private Methods

Method Description
AddToClassList ( Class nClass ) : void
AddToFieldList ( Field f ) : void
AddToList ( ArrayList list, MDTable tabIx ) : void
AddToMethodList ( Method m ) : void
Class ( ) : System
ClassName ( ) : string
GetFieldList ( ) : ArrayList
GetGenPar ( uint ix ) : Type
GetMethod ( MethSig mSig ) : Method
GetMethodList ( ) : ArrayList
GetNested ( string name ) : Class
SetBuffer ( PEReader buff ) : void
TypeDefOrRefToken ( ) : uint
TypeSig ( MemoryStream sig ) : void
isSpecial ( ) : bool
isValueType ( ) : bool

Method Details

FindField() protected method

protected FindField ( string name ) : Field
name string
return Field

GetFieldDesc() public method

Get the descriptor for the field "name" for this class
public GetFieldDesc ( string name ) : Field
name string Field name
return Field

GetFieldDescs() public method

Get all the fields for this class
public GetFieldDescs ( ) : PERWAPI.Field[]
return PERWAPI.Field[]

GetMethodDesc() public method

Get the descriptor for the method "name" of this class
public GetMethodDesc ( string name ) : Method
name string The name of the method to be retrieved
return Method

GetMethodDesc() public method

Get the descriptor for the method called "name" with the signature "parTypes"
public GetMethodDesc ( string name, Type parTypes ) : Method
name string The name of the method
parTypes Type The signature of the method
return Method

GetMethodDesc() public method

Get the vararg method "name(parTypes,optTypes)" for this class
public GetMethodDesc ( string name, Type parTypes, Type optParTypes ) : Method
name string Method name
parTypes Type Method parameter types
optParTypes Type Optional parameter types
return Method

GetMethodDescs() public method

Get all the methods for this class
public GetMethodDescs ( ) : PERWAPI.Method[]
return PERWAPI.Method[]

GetMethodDescs() public method

Get all the methods of this class called "name"
public GetMethodDescs ( string name ) : PERWAPI.Method[]
name string The method name
return PERWAPI.Method[]

GetMeths() protected method

protected GetMeths ( string name ) : ArrayList
name string
return System.Collections.ArrayList

GetNestedClassCount() public method

How many nested classes does this class have?
public GetNestedClassCount ( ) : int
return int

GetNestedClasses() public method

Get any nested classes of this class
public GetNestedClasses ( ) : PERWAPI.Class[]
return PERWAPI.Class[]

GetParent() public abstract method

Get the owing scope of this class
public abstract GetParent ( ) : MetaDataElement
return MetaDataElement

Instantiate() public method

Instantiate this generic type with the supplied types
public Instantiate ( Type genTypes ) : ClassSpec
genTypes Type types to instantiate with
return ClassSpec

MakeSpecial() public method

Denote this class as "special" such as a default module class
public MakeSpecial ( ) : void
return void

MakeValueClass() public method

public MakeValueClass ( ) : void
return void

Name() public method

Get the name of this class
public Name ( ) : string
return string

NameSpace() public method

Get the namespace that includes this class
public NameSpace ( ) : string
return string

RemoveField() public method

Remove the specified field from this class
public RemoveField ( string name ) : void
name string field name
return void

RemoveMethod() public method

Remove the specified method from this class
public RemoveMethod ( Method meth ) : void
meth Method method descriptor
return void

RemoveMethod() public method

Remove the specified method from this class
public RemoveMethod ( int ix ) : void
ix int index into list of methods for specified method
return void

RemoveMethod() public method

Remove the specified method from this class
public RemoveMethod ( string name ) : void
name string method name
return void

RemoveMethod() public method

Remove the specified method from this class
public RemoveMethod ( string name, Type parTypes ) : void
name string method name
parTypes Type method parameter types
return void

RemoveMethod() public method

Remove the specified method from this class
public RemoveMethod ( string name, Type parTypes, Type optTypes ) : void
name string method name
parTypes Type method parameter types
optTypes Type optional method parameter types
return void

TypeName() public method

Get the string representation of the qualified name of this class
public TypeName ( ) : string
return string

Property Details

fieldNames protected_oe property

protected string[] fieldNames
return string[]

fields protected_oe property

protected ArrayList,System.Collections fields
return System.Collections.ArrayList

genericParams protected_oe property

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

methods protected_oe property

protected ArrayList,System.Collections methods
return System.Collections.ArrayList

name protected_oe property

protected string name
return string

nameIx protected_oe property

protected uint nameIx
return uint

nestedClasses protected_oe property

protected ArrayList,System.Collections nestedClasses
return System.Collections.ArrayList

special protected_oe property

protected bool special
return bool