C# Class PERWAPI.AssemblyRef

A reference to an external assembly (.assembly extern)
Inheritance: ReferenceScope
ファイルを表示 Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
AddCulture ( string cult ) : void

Set the culture for this external assembly

AddHash ( byte hash ) : void

Add the hash value for this external assembly

AddKey ( byte key ) : void

Add the full public key for this external assembly

AddKeyToken ( byte key ) : void

Add the public key token (low 8 bytes of the public key)

AddVersionInfo ( int majVer, int minVer, int bldNo, int revNo ) : void

Add version information about this external assembly

BuildNumber ( ) : int

Get the build number for this external assembly

GetCulture ( ) : string
GetHash ( ) : byte[]

Get the hash value for this external assembly

GetKey ( ) : byte[]

Get the public key token

HasVersionInfo ( ) : bool

Check if this external assembly has any version information

MajorVersion ( ) : int

Get the major version for this external assembly

MakeAssemblyRef ( string name ) : AssemblyRef

Make an AssemblyRef for "name".

MakeAssemblyRef ( string name, int majVer, int minVer, int bldNo, int revNo, byte key ) : AssemblyRef
MinorVersion ( ) : int

Get the minor version for this external assembly

RevisionNumber ( ) : int

Get the revision number for this external assembly

Private Methods

Method Description
AssemblyRef ( string name ) : System
AssemblyRef ( string name, ushort maj, ushort min, ushort bldNo, ushort rev, uint flags, byte kBytes, string cult, byte hBytes ) : System
AssemblyString ( ) : string
BuildTables ( MetaDataOut md ) : void
GetCodedIx ( CIx code ) : uint
Read ( PEReader buff ) : AssemblyRef
Read ( PEReader buff, TableRow table ) : void
SetFlags ( uint flags ) : void
Size ( MetaData md ) : uint
Write ( CILWriter output ) : void
Write ( PEWriter output ) : void

Method Details

AddCulture() public method

Set the culture for this external assembly
public AddCulture ( string cult ) : void
cult string the culture string
return void

AddHash() public method

Add the hash value for this external assembly
public AddHash ( byte hash ) : void
hash byte bytes of the hash value
return void

AddKey() public method

Add the full public key for this external assembly
public AddKey ( byte key ) : void
key byte bytes of the public key
return void

AddKeyToken() public method

Add the public key token (low 8 bytes of the public key)
public AddKeyToken ( byte key ) : void
key byte low 8 bytes of public key
return void

AddVersionInfo() public method

Add version information about this external assembly
public AddVersionInfo ( int majVer, int minVer, int bldNo, int revNo ) : void
majVer int Major Version
minVer int Minor Version
bldNo int Build Number
revNo int Revision Number
return void

BuildNumber() public method

Get the build number for this external assembly
public BuildNumber ( ) : int
return int

GetCulture() public method

public GetCulture ( ) : string
return string

GetHash() public method

Get the hash value for this external assembly
public GetHash ( ) : byte[]
return byte[]

GetKey() public method

Get the public key token
public GetKey ( ) : byte[]
return byte[]

HasVersionInfo() public method

Check if this external assembly has any version information
public HasVersionInfo ( ) : bool
return bool

MajorVersion() public method

Get the major version for this external assembly
public MajorVersion ( ) : int
return int

MakeAssemblyRef() public static method

Make an AssemblyRef for "name".
public static MakeAssemblyRef ( string name ) : AssemblyRef
name string The name of the assembly
return AssemblyRef

MakeAssemblyRef() public static method

public static MakeAssemblyRef ( string name, int majVer, int minVer, int bldNo, int revNo, byte key ) : AssemblyRef
name string
majVer int
minVer int
bldNo int
revNo int
key byte
return AssemblyRef

MinorVersion() public method

Get the minor version for this external assembly
public MinorVersion ( ) : int
return int

RevisionNumber() public method

Get the revision number for this external assembly
public RevisionNumber ( ) : int
return int