C# Class PERWAPI.Assembly

Descriptor for an assembly (.assembly)
Inheritance: DefiningScope
Show file Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
AddAssemblyAttr ( AssemAttr aa ) : void

Add an attribute for this assembly

AddAssemblyInfo ( int majVer, int minVer, int bldNo, int revNo, byte key, HashAlgorithmType hash, string cult ) : void

Add details about an assembly

AddSecurity ( SecurityAction act, byte permissionSet ) : void

Add some security action(s) to this Assembly

AssemblyAttributes ( ) : AssemAttr

Get the attributes of this assembly

BuildNumber ( ) : int

Get the build number for this Assembly

Culture ( ) : string

Get the culture information for this Assembly

GetSecurity ( ) : PERWAPI.DeclSecurity[]

Get the security information for this assembly

HasSecurity ( ) : bool

Check if this assembly has security information

HashAlgorithm ( ) : HashAlgorithmType

Get the type of the hash algorithm for this Assembly

Key ( ) : byte[]

Get the public key for this Assembly

MajorVersion ( ) : int

Get the major version number for this Assembly

MakeRefOf ( ) : AssemblyRef

Make an AssemblyRef descriptor for this Assembly

MinorVersion ( ) : int

Get the minor version number for this Assembly

RevisionNumber ( ) : int

Get the revision number for this Assembly

SetAssemblyAttr ( AssemAttr aa ) : void

Set the attributes for this assembly

Private Methods

Method Description
AddSecurity ( DeclSecurity sec ) : void
Assembly ( string name, HashAlgorithmType hashAlgId, ushort majVer, ushort minVer, ushort bldNo, ushort revNo, uint flags, byte pKey, string cult, PEFile pefile ) : System
Assembly ( string name, PEFile pefile ) : System
BuildTables ( MetaDataOut md ) : void
GetCodedIx ( CIx code ) : uint
Read ( PEReader buff, TableRow table, PEFile pefile ) : void
ReadAssemblyRef ( PEReader buff ) : AssemblyRef
Size ( MetaData md ) : uint
Write ( CILWriter output ) : void
Write ( PEWriter output ) : void

Method Details

AddAssemblyAttr() public method

Add an attribute for this assembly
public AddAssemblyAttr ( AssemAttr aa ) : void
aa AssemAttr assembly attribute
return void

AddAssemblyInfo() public method

Add details about an assembly
public AddAssemblyInfo ( int majVer, int minVer, int bldNo, int revNo, byte key, HashAlgorithmType hash, string cult ) : void
majVer int Major Version
minVer int Minor Version
bldNo int Build Number
revNo int Revision Number
key byte Hash Key
hash HashAlgorithmType Hash Algorithm
cult string Culture
return void

AddSecurity() public method

Add some security action(s) to this Assembly
public AddSecurity ( SecurityAction act, byte permissionSet ) : void
act SecurityAction
permissionSet byte
return void

AssemblyAttributes() public method

Get the attributes of this assembly
public AssemblyAttributes ( ) : AssemAttr
return AssemAttr

BuildNumber() public method

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

Culture() public method

Get the culture information for this Assembly
public Culture ( ) : string
return string

GetSecurity() public method

Get the security information for this assembly
public GetSecurity ( ) : PERWAPI.DeclSecurity[]
return PERWAPI.DeclSecurity[]

HasSecurity() public method

Check if this assembly has security information
public HasSecurity ( ) : bool
return bool

HashAlgorithm() public method

Get the type of the hash algorithm for this Assembly
public HashAlgorithm ( ) : HashAlgorithmType
return HashAlgorithmType

Key() public method

Get the public key for this Assembly
public Key ( ) : byte[]
return byte[]

MajorVersion() public method

Get the major version number for this Assembly
public MajorVersion ( ) : int
return int

MakeRefOf() public method

Make an AssemblyRef descriptor for this Assembly
public MakeRefOf ( ) : AssemblyRef
return AssemblyRef

MinorVersion() public method

Get the minor version number for this Assembly
public MinorVersion ( ) : int
return int

RevisionNumber() public method

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

SetAssemblyAttr() public method

Set the attributes for this assembly
public SetAssemblyAttr ( AssemAttr aa ) : void
aa AssemAttr assembly attribute
return void