C# Class PERWAPI.Class

The base descriptor for a class
Inheritance: Type
Afficher le fichier Open project: xored/f4 Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
FindField ( string name ) : Field
GetMeths ( string name ) : ArrayList

Private Methods

Méthode 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 méthode

protected FindField ( string name ) : Field
name string
Résultat Field

GetFieldDesc() public méthode

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

GetFieldDescs() public méthode

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

GetMethodDesc() public méthode

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
Résultat Method

GetMethodDesc() public méthode

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
Résultat Method

GetMethodDesc() public méthode

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
Résultat Method

GetMethodDescs() public méthode

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

GetMethodDescs() public méthode

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

GetMeths() protected méthode

protected GetMeths ( string name ) : ArrayList
name string
Résultat System.Collections.ArrayList

GetNestedClassCount() public méthode

How many nested classes does this class have?
public GetNestedClassCount ( ) : int
Résultat int

GetNestedClasses() public méthode

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

GetParent() public abstract méthode

Get the owing scope of this class
public abstract GetParent ( ) : MetaDataElement
Résultat MetaDataElement

Instantiate() public méthode

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

MakeSpecial() public méthode

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

MakeValueClass() public méthode

public MakeValueClass ( ) : void
Résultat void

Name() public méthode

Get the name of this class
public Name ( ) : string
Résultat string

NameSpace() public méthode

Get the namespace that includes this class
public NameSpace ( ) : string
Résultat string

RemoveField() public méthode

Remove the specified field from this class
public RemoveField ( string name ) : void
name string field name
Résultat void

RemoveMethod() public méthode

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

RemoveMethod() public méthode

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

RemoveMethod() public méthode

Remove the specified method from this class
public RemoveMethod ( string name ) : void
name string method name
Résultat void

RemoveMethod() public méthode

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

RemoveMethod() public méthode

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
Résultat void

TypeName() public méthode

Get the string representation of the qualified name of this class
public TypeName ( ) : string
Résultat string

Property Details

fieldNames protected_oe property

protected string[] fieldNames
Résultat string[]

fields protected_oe property

protected ArrayList,System.Collections fields
Résultat System.Collections.ArrayList

genericParams protected_oe property

protected ArrayList,System.Collections genericParams
Résultat System.Collections.ArrayList

methods protected_oe property

protected ArrayList,System.Collections methods
Résultat System.Collections.ArrayList

name protected_oe property

protected string name
Résultat string

nameIx protected_oe property

protected uint nameIx
Résultat uint

nestedClasses protected_oe property

protected ArrayList,System.Collections nestedClasses
Résultat System.Collections.ArrayList

special protected_oe property

protected bool special
Résultat bool