C# 클래스 PERWAPI.Module

Descriptor for a module
상속: DefiningScope
파일 보기 프로젝트 열기: xored/f4

보호된 프로퍼티들

프로퍼티 타입 설명
defaultClass ClassDef
ismscorlib bool
resources ArrayList

공개 메소드들

메소드 설명
AddClass ( TypeAttr attrSet, string nsName, string name ) : ClassDef

Add a class to this Module If this class already exists, throw an exception

AddClass ( TypeAttr attrSet, string nsName, string name, Class superType ) : ClassDef

Add a class to this PE File

AddClass ( ClassDef aClass ) : void

Add a class to this module If this class already exists, throw an exception

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

Add a "global" field to this module

AddField ( string name, Type fType ) : FieldDef

Add a "global" field to this module

AddField ( FieldDef fld ) : void

Add a "global" field to this module

AddMethod ( MethAttr mAtts, ImplAttr iAtts, string name, GenericParam genPars, Type retType, Param pars ) : MethodDef

Add a "global" method to this module

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

Add a "global" method to this module

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

Add a "global" method to this module

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

Add a "global" method to this module

AddMethod ( MethodDef meth ) : void

Add a "global" method to this module

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

Add a class which extends System.ValueType to this Module If this class already exists, throw an exception

GetClass ( string name ) : ClassDef

Get a class of this module, if no class exists, return null

GetClass ( string nsName, string name ) : ClassDef

Get a class of this module, if no class exists, return null

GetClasses ( ) : PERWAPI.ClassDef[]

Get all the classes of this module

GetField ( string name ) : FieldDef

Get a field of this module, if it exists

GetFields ( ) : PERWAPI.FieldDef[]

Get all the fields of this module

GetMVid ( ) : System.Guid
GetMethod ( string name ) : MethodDef

Get a method of this module, if it exists

GetMethod ( string name, Type parTypes ) : MethodDef

Get a method of this module, if it exists

GetMethods ( ) : PERWAPI.MethodDef[]

Get all the methods of this module

GetMethods ( string name ) : PERWAPI.MethodDef[]

Get all the methods of this module with a specified name

MakeRefOf ( ) : ModuleRef

Make a ModuleRef for this Module.

RemoveMethod ( MethodDef meth ) : void

Delete a method from this module

RemoveMethod ( int ix ) : void

Delete a method from this module

RemoveMethod ( string name ) : void

Delete a method from this module

RemoveMethod ( string name, Type parTypes ) : void

Delete a method from this module

SetMVid ( Guid guid ) : void
SetName ( string newName ) : void

Set the name for this module

비공개 메소드들

메소드 설명
BuildTables ( MetaDataOut md ) : void
GetBaseName ( string name ) : string
GetCodedIx ( CIx code ) : uint
Module ( string mName ) : System
Read ( PEReader buff ) : void
ReadModuleRef ( PEReader buff ) : ModuleRef
SetDefaultClass ( ClassDef dClass ) : void
Size ( MetaData md ) : uint
Write ( PEWriter output ) : void
isDefaultClass ( ClassDef aClass ) : bool
isMSCorLib ( ) : bool

메소드 상세

AddClass() 공개 메소드

Add a class to this Module If this class already exists, throw an exception
public AddClass ( TypeAttr attrSet, string nsName, string name ) : ClassDef
attrSet TypeAttr attributes of this class
nsName string name space name
name string class name
리턴 ClassDef

AddClass() 공개 메소드

Add a class to this PE File
public AddClass ( TypeAttr attrSet, string nsName, string name, Class superType ) : ClassDef
attrSet TypeAttr attributes of this class
nsName string name space name
name string class name
superType Class super type of this class (extends)
리턴 ClassDef

AddClass() 공개 메소드

Add a class to this module If this class already exists, throw an exception
public AddClass ( ClassDef aClass ) : void
aClass ClassDef The class to be added
리턴 void

AddField() 공개 메소드

Add a "global" field to this module
public AddField ( FieldAttr attrSet, string name, Type fType ) : FieldDef
attrSet FieldAttr attributes of this field
name string field name
fType Type field type
리턴 FieldDef

AddField() 공개 메소드

Add a "global" field to this module
public AddField ( string name, Type fType ) : FieldDef
name string field name
fType Type field type
리턴 FieldDef

AddField() 공개 메소드

Add a "global" field to this module
public AddField ( FieldDef fld ) : void
fld FieldDef The field to be added
리턴 void

AddMethod() 공개 메소드

Add a "global" method to this module
public AddMethod ( MethAttr mAtts, ImplAttr iAtts, string name, GenericParam genPars, Type retType, Param pars ) : MethodDef
mAtts MethAttr method attributes
iAtts ImplAttr method implementation attributes
name string method name
genPars GenericParam generic parameters
retType Type return type
pars Param method parameters
리턴 MethodDef

AddMethod() 공개 메소드

Add a "global" method to this module
public AddMethod ( MethAttr mAtts, ImplAttr iAtts, string name, Type retType, Param pars ) : MethodDef
mAtts MethAttr method attributes
iAtts ImplAttr method implementation attributes
name string method name
retType Type return type
pars Param method parameters
리턴 MethodDef

AddMethod() 공개 메소드

Add a "global" method to this module
public AddMethod ( string name, GenericParam genPars, Type retType, Param pars ) : MethodDef
name string method name
genPars GenericParam generic parameters
retType Type return type
pars Param method parameters
리턴 MethodDef

AddMethod() 공개 메소드

Add a "global" method to this module
public AddMethod ( string name, Type retType, Param pars ) : MethodDef
name string method name
retType Type return type
pars Param method parameters
리턴 MethodDef

AddMethod() 공개 메소드

Add a "global" method to this module
public AddMethod ( MethodDef meth ) : void
meth MethodDef The method to be added
리턴 void

AddValueClass() 공개 메소드

Add a class which extends System.ValueType to this Module If this class already exists, throw an exception
public AddValueClass ( TypeAttr attrSet, string nsName, string name ) : ClassDef
attrSet TypeAttr attributes of this class
nsName string name space name
name string class name
리턴 ClassDef

GetClass() 공개 메소드

Get a class of this module, if no class exists, return null
public GetClass ( string name ) : ClassDef
name string The name of the class to get
리턴 ClassDef

GetClass() 공개 메소드

Get a class of this module, if no class exists, return null
public GetClass ( string nsName, string name ) : ClassDef
nsName string The namespace of the class
name string The name of the class to get
리턴 ClassDef

GetClasses() 공개 메소드

Get all the classes of this module
public GetClasses ( ) : PERWAPI.ClassDef[]
리턴 PERWAPI.ClassDef[]

GetField() 공개 메소드

Get a field of this module, if it exists
public GetField ( string name ) : FieldDef
name string The name of the field
리턴 FieldDef

GetFields() 공개 메소드

Get all the fields of this module
public GetFields ( ) : PERWAPI.FieldDef[]
리턴 PERWAPI.FieldDef[]

GetMVid() 공개 메소드

public GetMVid ( ) : System.Guid
리턴 System.Guid

GetMethod() 공개 메소드

Get a method of this module, if it exists
public GetMethod ( string name ) : MethodDef
name string The name of the method to get
리턴 MethodDef

GetMethod() 공개 메소드

Get a method of this module, if it exists
public GetMethod ( string name, Type parTypes ) : MethodDef
name string The name of the method to get
parTypes Type The signature of the method
리턴 MethodDef

GetMethods() 공개 메소드

Get all the methods of this module
public GetMethods ( ) : PERWAPI.MethodDef[]
리턴 PERWAPI.MethodDef[]

GetMethods() 공개 메소드

Get all the methods of this module with a specified name
public GetMethods ( string name ) : PERWAPI.MethodDef[]
name string The name of the method(s)
리턴 PERWAPI.MethodDef[]

MakeRefOf() 공개 메소드

Make a ModuleRef for this Module.
public MakeRefOf ( ) : ModuleRef
리턴 ModuleRef

RemoveMethod() 공개 메소드

Delete a method from this module
public RemoveMethod ( MethodDef meth ) : void
meth MethodDef The method to be deleted
리턴 void

RemoveMethod() 공개 메소드

Delete a method from this module
public RemoveMethod ( int ix ) : void
ix int The index of the method (in the method array /// returned by GetMethods()) to be deleted
리턴 void

RemoveMethod() 공개 메소드

Delete a method from this module
public RemoveMethod ( string name ) : void
name string The name of the method to be deleted
리턴 void

RemoveMethod() 공개 메소드

Delete a method from this module
public RemoveMethod ( string name, Type parTypes ) : void
name string The name of the method to be deleted
parTypes Type The signature of the method to be deleted
리턴 void

SetMVid() 공개 메소드

public SetMVid ( Guid guid ) : void
guid Guid
리턴 void

SetName() 공개 메소드

Set the name for this module
public SetName ( string newName ) : void
newName string New module name
리턴 void

프로퍼티 상세

defaultClass 보호되어 있는 프로퍼티

The default class "Module" for globals
protected ClassDef defaultClass
리턴 ClassDef

ismscorlib 보호되어 있는 프로퍼티

Is this module a .dll or .exe Is this module mscorlib.dll
protected bool ismscorlib
리턴 bool

resources 보호되어 있는 프로퍼티

Managed resources for this module
protected ArrayList resources
리턴 ArrayList