C# Class PEAPI.ClassDef

The descriptor for a class defined in the IL (.class) in the current assembly/module
Inheritance: Class
Afficher le fichier Open project: kumpera/mono Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

AddAttribute() public méthode

Add an attribute to this class
public AddAttribute ( TypeAttr ta ) : void
ta TypeAttr the attribute to be added
Résultat void

AddEvent() public méthode

Add an event to this class
public AddEvent ( string name, Type eType ) : Event
name string event name
eType Type event type
Résultat Event

AddField() public méthode

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

AddField() public méthode

Add a field to this class
public AddField ( string name, Type fType ) : FieldDef
name string field name
fType Type field type
Résultat FieldDef

AddGenericParameter() public méthode

Add a named generic type parameter
public AddGenericParameter ( short index, string name ) : GenericParameter
index short
name string
Résultat GenericParameter

AddGenericParameter() public méthode

Add a named generic type parameter with attributes
public AddGenericParameter ( short index, string name, GenericParamAttributes attr ) : GenericParameter
index short
name string
attr GenericParamAttributes
Résultat GenericParameter

AddImplementedInterface() public méthode

Add an interface that is implemented by this class
public AddImplementedInterface ( Class iFace ) : void
iFace Class the interface that is implemented
Résultat void

AddLayoutInfo() public méthode

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

AddMethod() public méthode

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

AddMethod() public méthode

public AddMethod ( string name, Param ret_param, Param pars ) : MethodDef
name string
ret_param Param
pars Param
Résultat MethodDef

AddMethod() public méthode

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

AddMethodOverride() public méthode

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

AddNestedClass() public méthode

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

AddNestedClass() public méthode

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

AddProperty() public méthode

Add a property to this class
public AddProperty ( string name, Type retType, Type pars ) : Property
name string property name
retType Type
pars Type
Résultat Property

AddSecurity() public méthode

Add security to this class NOT YET IMPLEMENTED
public AddSecurity ( byte permissionSet ) : void
permissionSet byte
Résultat void

IsEnum() public static méthode

public static IsEnum ( Class type ) : bool
type Class
Résultat bool

IsEnum() public static méthode

public static IsEnum ( string nsName, string name ) : bool
nsName string
name string
Résultat bool

IsValueType() public static méthode

public static IsValueType ( Class type ) : bool
type Class
Résultat bool

IsValueType() public static méthode

public static IsValueType ( string nsName, string name ) : bool
nsName string
name string
Résultat bool

SetFieldOrder() public méthode

public SetFieldOrder ( ArrayList fields ) : void
fields System.Collections.ArrayList
Résultat void

SpecialNoSuper() public méthode

public SpecialNoSuper ( ) : void
Résultat void