C# Class PERWAPI.FieldDef

Descriptor for a field defined in a class of an assembly/module
Inheritance: Field
Afficher le fichier Open project: xored/f4 Class Usage Examples

Méthodes publiques

Méthode Description
AddDataValue ( DataConstant val ) : void

Add an initial value for this field (at dataLabel) (.data)

AddFieldAttr ( FieldAttr fa ) : void

Add an attribute(s) to this field

AddValue ( Constant val ) : void

Add a value for this field

GetDataValue ( ) : DataConstant

Get the value for this data constant

GetFieldAttr ( ) : FieldAttr
GetMarshalType ( ) : NativeType
GetOffset ( ) : uint

Return the offset for this data constant

GetValue ( ) : Constant

Retrieve the initial value for this field

HasOffset ( ) : bool

Does this data constant have an offset?

MakeRefOf ( ) : FieldRef

Create the FieldRef equivalent to this FieldDef. If one does not exist then create it.

RefOf ( ) : FieldRef

Get the FieldRef equivalent to this FieldDef. Assumes that one already exists.

RemoveDataValue ( ) : void

Delete the value of this data constant

RemoveMarshalType ( ) : void
RemoveOffset ( ) : void

Delete the offset of this data constant

RemoveValue ( ) : void

Remove the initial value from this field

SetFieldAttr ( FieldAttr fa ) : void
SetMarshalType ( NativeType mType ) : void

Set the marshalling info for a field

SetOffset ( uint offs ) : void

Set the offset of the field. Used for sequential or explicit classes. (.field [offs])

Private Methods

Méthode Description
BuildCILInfo ( CILWriter output ) : void
BuildTables ( MetaDataOut md ) : void
ChangeRefsToDefs ( ClassDef newPar, ClassDef oldTypes ) : void
FieldDef ( FieldAttr attrSet, string name, Type fType, ClassDef paren ) : System
FieldDef ( FieldAttr attrSet, string name, Type fType, ClassSpec paren ) : System
FieldDef ( PEReader buff ) : System
FieldDef ( string name, Type fType, ClassDef paren ) : System
GetCodedIx ( CIx code ) : uint
GetFieldRefs ( PEReader buff, uint num, ClassRef parent ) : void
GetScope ( ) : PEFile
Read ( PEReader buff, TableRow fields ) : void
Resolve ( PEReader buff, uint fIx ) : void
SetParent ( ClassDef paren ) : void
Size ( MetaData md ) : uint
Write ( CILWriter output ) : void
Write ( PEWriter output ) : void
isDef ( ) : bool

Method Details

AddDataValue() public méthode

Add an initial value for this field (at dataLabel) (.data)
public AddDataValue ( DataConstant val ) : void
val DataConstant the value for the field
Résultat void

AddFieldAttr() public méthode

Add an attribute(s) to this field
public AddFieldAttr ( FieldAttr fa ) : void
fa FieldAttr the attribute(s) to be added
Résultat void

AddValue() public méthode

Add a value for this field
public AddValue ( Constant val ) : void
val Constant the value for the field
Résultat void

GetDataValue() public méthode

Get the value for this data constant
public GetDataValue ( ) : DataConstant
Résultat DataConstant

GetFieldAttr() public méthode

public GetFieldAttr ( ) : FieldAttr
Résultat FieldAttr

GetMarshalType() public méthode

public GetMarshalType ( ) : NativeType
Résultat NativeType

GetOffset() public méthode

Return the offset for this data constant
public GetOffset ( ) : uint
Résultat uint

GetValue() public méthode

Retrieve the initial value for this field
public GetValue ( ) : Constant
Résultat Constant

HasOffset() public méthode

Does this data constant have an offset?
public HasOffset ( ) : bool
Résultat bool

MakeRefOf() public méthode

Create the FieldRef equivalent to this FieldDef. If one does not exist then create it.
public MakeRefOf ( ) : FieldRef
Résultat FieldRef

RefOf() public méthode

Get the FieldRef equivalent to this FieldDef. Assumes that one already exists.
public RefOf ( ) : FieldRef
Résultat FieldRef

RemoveDataValue() public méthode

Delete the value of this data constant
public RemoveDataValue ( ) : void
Résultat void

RemoveMarshalType() public méthode

public RemoveMarshalType ( ) : void
Résultat void

RemoveOffset() public méthode

Delete the offset of this data constant
public RemoveOffset ( ) : void
Résultat void

RemoveValue() public méthode

Remove the initial value from this field
public RemoveValue ( ) : void
Résultat void

SetFieldAttr() public méthode

public SetFieldAttr ( FieldAttr fa ) : void
fa FieldAttr
Résultat void

SetMarshalType() public méthode

Set the marshalling info for a field
public SetMarshalType ( NativeType mType ) : void
mType NativeType
Résultat void

SetOffset() public méthode

Set the offset of the field. Used for sequential or explicit classes. (.field [offs])
public SetOffset ( uint offs ) : void
offs uint field offset
Résultat void