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 an instance of the 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
The collection of assembly references for this assembly.
public IBinaryAssemblyReferenceCollection AssemblyReferences { get; }
Property Value
Documentation
The IAssemblyDocumentation that provides access to this assembly's type and member documentation.
GlobalNamespace
The entry point into the INamespaceDefinition tree defined in this assembly.
HasLoadErrors
Indicates whether load errors were encountered when using reflection on the related .NET assembly.
LastModifiedDateTime
The DateTime at which the assembly was last modified, if known.
Location
The location of the assembly, if known.
Name
The simple name of the assembly.
Namespaces
The collection of INamespaceDefinition objects defined in this assembly.
public INamespaceDefinitionCollection Namespaces { get; }
Property Value
Size
The size of the assembly, if known.
Methods
GetAssemblyName()
Returns an IAssemblyName that contains assembly name information.
ToString()
Returns the string representation of this object.
ToTreeString()
Outputs a string indicating the contents of the assembly in tree form.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()