BinaryAssembly Class
Represents a binary (source code-based) assembly.
public class BinaryAssembly : IBinaryAssembly, IAssembly, IBinaryAssemblyMetadata
- Inheritance:
- object object
- Implements:
- IBinaryAssembly IAssembly IBinaryAssemblyMetadata
Constructors
BinaryAssembly(IAssemblyName, IBinaryAssemblyMetadata, IBinaryAssemblyReferenceCollection, IEnumerable<ITypeDefinition>, bool)
Initializes a new instance of the BinaryAssembly
class.
public BinaryAssembly(IAssemblyName assemblyName, IBinaryAssemblyMetadata metadata, IBinaryAssemblyReferenceCollection assemblyRefs, IEnumerable<ITypeDefinition> typeDefs, bool hasLoadErrors)
Parameter | Type | Description |
---|---|---|
assemblyName | IAssemblyName | The IAssemblyName to use. |
metadata | IBinaryAssemblyMetadata | The assembly metadata. |
assemblyRefs | IBinaryAssemblyReferenceCollection | The collection of assembly references for this assembly. |
typeDefs | IEnumerable<ITypeDefinition> | The exported type definitions. |
hasLoadErrors | bool | Whether load errors were encountered when using reflection on the related .NET assembly. |
Properties
AssemblyReferences
Gets the collection of assembly references for this assembly.
public IBinaryAssemblyReferenceCollection AssemblyReferences { get; }
Property Value
- IBinaryAssemblyReferenceCollection:
The collection of assembly references for this assembly.
Documentation
Gets or sets the IAssemblyDocumentation that provides access to this assembly's type and member documentation.
public IAssemblyDocumentation Documentation { get; set; }
Property Value
- IAssemblyDocumentation:
The IAssemblyDocumentation that provides access to this assembly's type and member documentation.
GlobalNamespace
Gets the entry point into the INamespaceDefinition tree defined in this assembly.
public INamespaceDefinition GlobalNamespace { get; }
Property Value
- INamespaceDefinition:
The entry point into the INamespaceDefinition tree defined in this assembly.
HasLoadErrors
Gets whether load errors were encountered when using reflection on the related .NET assembly.
public bool HasLoadErrors { get; }
Property Value
- bool:
true
if load errors were encountered; otherwise,false
.
LastModifiedDateTime
Gets the DateTime at which the assembly was last modified, if known.
public DateTime? LastModifiedDateTime { get; }
Property Value
Location
Gets the location of the assembly, if known.
Name
Gets the simple name of the assembly.
Namespaces
Gets the collection of INamespaceDefinition objects defined in this assembly.
public INamespaceDefinitionCollection Namespaces { get; }
Property Value
- INamespaceDefinitionCollection:
The collection of INamespaceDefinition objects defined in this assembly.
Size
Gets the size of the assembly, if known.
Methods
GetAssemblyName()
Returns an IAssemblyName that contains assembly name information.
public IAssemblyName GetAssemblyName()
Returns
- IAssemblyName:
An IAssemblyName that contains assembly name information.
ToString()
Returns a String
that represents the current Object
.
ToTreeString()
Outputs the contents of the assembly in tree form.