C# Класс PEAPI.ClassDef

The descriptor for a class defined in the IL (.class) in the current assembly/module
Наследование: Class
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddAttribute ( TypeAttr ta ) : void

Add an attribute to this class

AddEvent ( string name, Type eType ) : Event

Add an event to this class

AddField ( FieldAttr fAtts, string name, Type fType ) : FieldDef

Add a field to this class

AddField ( string name, Type fType ) : FieldDef

Add a field to this class

AddGenericParameter ( short index, string name ) : GenericParameter

Add a named generic type parameter

AddGenericParameter ( short index, string name, GenericParamAttributes attr ) : GenericParameter

Add a named generic type parameter with attributes

AddImplementedInterface ( Class iFace ) : void

Add an interface that is implemented by this class

AddLayoutInfo ( int packSize, int classSize ) : void

Add layout information for this class. This class must have the sequential or explicit attribute.

AddMethod ( MethAttr mAtts, ImplAttr iAtts, string name, Param ret_param, Param pars ) : MethodDef

Add a method to this class

AddMethod ( string name, Param ret_param, Param pars ) : MethodDef
AddMethod ( string name, Type retType, Param pars ) : MethodDef

Add a method to this class

AddMethodOverride ( Method decl, Method body ) : void

Use a method as the implementation for another method (.override)

AddNestedClass ( TypeAttr attrSet, string nsName, string name ) : ClassDef

Add a nested class to this class

AddNestedClass ( TypeAttr attrSet, string nsName, string name, Class sType ) : ClassDef

Add a nested class to this class

AddProperty ( string name, Type retType, Type pars ) : Property

Add a property to this class

AddSecurity ( byte permissionSet ) : void

Add security to this class NOT YET IMPLEMENTED

IsEnum ( Class type ) : bool
IsEnum ( string nsName, string name ) : bool
IsValueType ( Class type ) : bool
IsValueType ( string nsName, string name ) : bool
SetFieldOrder ( ArrayList fields ) : void
SpecialNoSuper ( ) : void

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

Метод Описание
BuildTables ( MetaData md ) : void
CheckTypeIndex ( ) : void
ClassDef ( TypeAttr attrSet, string nsName, string name, MetaData md ) : System
GetCodedIx ( CIx code ) : uint
MakeValueClass ( ValueClass vClass ) : void
SetSuper ( Class sClass ) : void
Size ( MetaData md ) : uint
TypeDefOrRefToken ( ) : uint
TypeSig ( MemoryStream sig ) : void
Write ( PEAPI.FileImage output ) : void

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

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

Add an attribute to this class
public AddAttribute ( TypeAttr ta ) : void
ta TypeAttr the attribute to be added
Результат void

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

Add an event to this class
public AddEvent ( string name, Type eType ) : Event
name string event name
eType Type event type
Результат Event

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

Add a field to this class
public AddField ( FieldAttr fAtts, string name, Type fType ) : FieldDef
fAtts FieldAttr attributes for this field
name string field name
fType Type field type
Результат FieldDef

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

Add a field to this class
public AddField ( string name, Type fType ) : FieldDef
name string field name
fType Type field type
Результат FieldDef

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

Add a named generic type parameter
public AddGenericParameter ( short index, string name ) : GenericParameter
index short
name string
Результат GenericParameter

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

Add a named generic type parameter with attributes
public AddGenericParameter ( short index, string name, GenericParamAttributes attr ) : GenericParameter
index short
name string
attr GenericParamAttributes
Результат GenericParameter

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

Add an interface that is implemented by this class
public AddImplementedInterface ( Class iFace ) : void
iFace Class the interface that is implemented
Результат void

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

Add layout information for this class. This class must have the sequential or explicit attribute.
public AddLayoutInfo ( int packSize, int classSize ) : void
packSize int packing size (.pack)
classSize int class size (.size)
Результат void

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

Add a method to this class
public AddMethod ( MethAttr mAtts, ImplAttr iAtts, string name, Param ret_param, Param pars ) : MethodDef
mAtts MethAttr attributes for this method
iAtts ImplAttr implementation attributes for this method
name string method name
ret_param Param
pars Param parameters
Результат MethodDef

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

public AddMethod ( string name, Param ret_param, Param pars ) : MethodDef
name string
ret_param Param
pars Param
Результат MethodDef

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

Add a method to this class
public AddMethod ( string name, Type retType, Param pars ) : MethodDef
name string method name
retType Type return type
pars Param parameters
Результат MethodDef

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

Use a method as the implementation for another method (.override)
public AddMethodOverride ( Method decl, Method body ) : void
decl Method the method to be overridden
body Method the implementation to be used
Результат void

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

Add a nested class to this class
public AddNestedClass ( TypeAttr attrSet, string nsName, string name ) : ClassDef
attrSet TypeAttr attributes for this nested class
nsName string nested name space name
name string nested class name
Результат ClassDef

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

Add a nested class to this class
public AddNestedClass ( TypeAttr attrSet, string nsName, string name, Class sType ) : ClassDef
attrSet TypeAttr attributes for this nested class
nsName string nested name space name
name string nested class name
sType Class super type of this nested class
Результат ClassDef

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

Add a property to this class
public AddProperty ( string name, Type retType, Type pars ) : Property
name string property name
retType Type
pars Type
Результат Property

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

Add security to this class NOT YET IMPLEMENTED
public AddSecurity ( byte permissionSet ) : void
permissionSet byte
Результат void

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

public static IsEnum ( Class type ) : bool
type Class
Результат bool

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

public static IsEnum ( string nsName, string name ) : bool
nsName string
name string
Результат bool

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

public static IsValueType ( Class type ) : bool
type Class
Результат bool

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

public static IsValueType ( string nsName, string name ) : bool
nsName string
name string
Результат bool

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

public SetFieldOrder ( ArrayList fields ) : void
fields System.Collections.ArrayList
Результат void

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

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