C# Класс PERWAPI.Class

The base descriptor for a class
Наследование: Type
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
fieldNames string[]
fields System.Collections.ArrayList
genericParams System.Collections.ArrayList
methods System.Collections.ArrayList
name string
nameIx uint
nestedClasses System.Collections.ArrayList
special bool

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

Метод Описание
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

Защищенные методы

Метод Описание
FindField ( string name ) : Field
GetMeths ( string name ) : ArrayList

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

Метод Описание
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

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

FindField() защищенный Метод

protected FindField ( string name ) : Field
name string
Результат Field

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

Get the descriptor for the field "name" for this class
public GetFieldDesc ( string name ) : Field
name string Field name
Результат Field

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

Get all the fields for this class
public GetFieldDescs ( ) : PERWAPI.Field[]
Результат PERWAPI.Field[]

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

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
Результат Method

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

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
Результат Method

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

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
Результат Method

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

Get all the methods for this class
public GetMethodDescs ( ) : PERWAPI.Method[]
Результат PERWAPI.Method[]

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

Get all the methods of this class called "name"
public GetMethodDescs ( string name ) : PERWAPI.Method[]
name string The method name
Результат PERWAPI.Method[]

GetMeths() защищенный Метод

protected GetMeths ( string name ) : ArrayList
name string
Результат System.Collections.ArrayList

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

How many nested classes does this class have?
public GetNestedClassCount ( ) : int
Результат int

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

Get any nested classes of this class
public GetNestedClasses ( ) : PERWAPI.Class[]
Результат PERWAPI.Class[]

GetParent() публичный абстрактный Метод

Get the owing scope of this class
public abstract GetParent ( ) : MetaDataElement
Результат MetaDataElement

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

Instantiate this generic type with the supplied types
public Instantiate ( Type genTypes ) : ClassSpec
genTypes Type types to instantiate with
Результат ClassSpec

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

Denote this class as "special" such as a default module class
public MakeSpecial ( ) : void
Результат void

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

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

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

Get the name of this class
public Name ( ) : string
Результат string

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

Get the namespace that includes this class
public NameSpace ( ) : string
Результат string

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

Remove the specified field from this class
public RemoveField ( string name ) : void
name string field name
Результат void

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

Remove the specified method from this class
public RemoveMethod ( Method meth ) : void
meth Method method descriptor
Результат void

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

Remove the specified method from this class
public RemoveMethod ( int ix ) : void
ix int index into list of methods for specified method
Результат void

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

Remove the specified method from this class
public RemoveMethod ( string name ) : void
name string method name
Результат void

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

Remove the specified method from this class
public RemoveMethod ( string name, Type parTypes ) : void
name string method name
parTypes Type method parameter types
Результат void

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

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
Результат void

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

Get the string representation of the qualified name of this class
public TypeName ( ) : string
Результат string

Описание свойств

fieldNames защищенное свойство

protected string[] fieldNames
Результат string[]

fields защищенное свойство

protected ArrayList,System.Collections fields
Результат System.Collections.ArrayList

genericParams защищенное свойство

protected ArrayList,System.Collections genericParams
Результат System.Collections.ArrayList

methods защищенное свойство

protected ArrayList,System.Collections methods
Результат System.Collections.ArrayList

name защищенное свойство

protected string name
Результат string

nameIx защищенное свойство

protected uint nameIx
Результат uint

nestedClasses защищенное свойство

protected ArrayList,System.Collections nestedClasses
Результат System.Collections.ArrayList

special защищенное свойство

protected bool special
Результат bool