C# 클래스 PERWAPI.FieldDef

Descriptor for a field defined in a class of an assembly/module
상속: Field
파일 보기 프로젝트 열기: xored/f4 1 사용 예제들

공개 메소드들

메소드 설명
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])

비공개 메소드들

메소드 설명
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

메소드 상세

AddDataValue() 공개 메소드

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

AddFieldAttr() 공개 메소드

Add an attribute(s) to this field
public AddFieldAttr ( FieldAttr fa ) : void
fa FieldAttr the attribute(s) to be added
리턴 void

AddValue() 공개 메소드

Add a value for this field
public AddValue ( Constant val ) : void
val Constant the value for the field
리턴 void

GetDataValue() 공개 메소드

Get the value for this data constant
public GetDataValue ( ) : DataConstant
리턴 DataConstant

GetFieldAttr() 공개 메소드

public GetFieldAttr ( ) : FieldAttr
리턴 FieldAttr

GetMarshalType() 공개 메소드

public GetMarshalType ( ) : NativeType
리턴 NativeType

GetOffset() 공개 메소드

Return the offset for this data constant
public GetOffset ( ) : uint
리턴 uint

GetValue() 공개 메소드

Retrieve the initial value for this field
public GetValue ( ) : Constant
리턴 Constant

HasOffset() 공개 메소드

Does this data constant have an offset?
public HasOffset ( ) : bool
리턴 bool

MakeRefOf() 공개 메소드

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

RefOf() 공개 메소드

Get the FieldRef equivalent to this FieldDef. Assumes that one already exists.
public RefOf ( ) : FieldRef
리턴 FieldRef

RemoveDataValue() 공개 메소드

Delete the value of this data constant
public RemoveDataValue ( ) : void
리턴 void

RemoveMarshalType() 공개 메소드

public RemoveMarshalType ( ) : void
리턴 void

RemoveOffset() 공개 메소드

Delete the offset of this data constant
public RemoveOffset ( ) : void
리턴 void

RemoveValue() 공개 메소드

Remove the initial value from this field
public RemoveValue ( ) : void
리턴 void

SetFieldAttr() 공개 메소드

public SetFieldAttr ( FieldAttr fa ) : void
fa FieldAttr
리턴 void

SetMarshalType() 공개 메소드

Set the marshalling info for a field
public SetMarshalType ( NativeType mType ) : void
mType NativeType
리턴 void

SetOffset() 공개 메소드

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