Class DependentAssemblyInfo
An instance of this class is created for each assembly listed as a dependent, and is used to track the assemblies that must be loaded to query their properties.
Inheritance
Namespace: WizardWrx.AssemblyUtils
Assembly: WizardWrx.AssemblyUtils.dll
Syntax
public class DependentAssemblyInfo : IComparable<DependentAssemblyInfo>
Constructors
| Improve this Doc View SourceDependentAssemblyInfo(AssemblyName)
The public constructor requires an AssemblyName from which to create an initialized instance.
Declaration
public DependentAssemblyInfo(AssemblyName panmAssemblyName)
Parameters
Type | Name | Description |
---|---|---|
AssemblyName | panmAssemblyName | AssemblyName fully describes an assembly, including properties that give direct access to the base (simple) name, version, culture, and public key token. |
Fields
| Improve this Doc View SourceIS_LOADED
The IsLoaded property has this value when the assembly is loaded when the DependentAssemblies query loop runs.
Declaration
public const bool IS_LOADED = null
Field Value
Type | Description |
---|---|
System.Boolean |
NOT_LOADED
The IsLoaded property has this value when the assembly is unloaded when the DependentAssemblies query loop runs.
Declaration
public const bool NOT_LOADED = null
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceAssemblyDetails
Get the Assembly, itself. If it was already loaded for use, this is a reference to the live assembly. Otherwise, it is a copy that was loaded for reflection, and will be unloaded by the destructor.
Declaration
public Assembly AssemblyDetails { get; }
Property Value
Type | Description |
---|---|
Assembly |
FullName
Get the FullName of the assembly.
Declaration
public string FullName { get; }
Property Value
Type | Description |
---|---|
System.String |
IsLoaded
Get the load state of the assembly.
Declaration
public bool IsLoaded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceDestroyOwneAppdDomains()
You must call this method once, when you are finished using the object, but before it goes out of scope, to unload the private AppDomain, along with the assemblies that were loaded into it.
Declaration
public void DestroyOwneAppdDomains()
Remarks
This activity cannot be performed by a destructor, because the unload fails with HRESULT 0x80131015 when the unload is initiated by a destructor, or when a destructor is active.
Equals(Object)
Test a pair of object instances for logical equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Supply a reference to the other object to test for equality with the calling instance. |
Returns
Type | Description |
---|---|
System.Boolean | This method returns TRUE if the two objects are of the same or equivalent types and their FullName properties are equal. Otherwise, the return value is FALSE. |
GetHashCode()
Return the HashCode property of the FullName property of the instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
LoadForInspection()
The name of this method reflects its motivation, which was to report on the assemblies upon which a specified "root" assembly depends.
Declaration
public void LoadForInspection()
MarkAsLoaded(Assembly)
Call this method to mark an assembly as loaded.
Declaration
public void MarkAsLoaded(Assembly pasmThis)
Parameters
Type | Name | Description |
---|---|---|
Assembly | pasmThis |
ToString()
Return a string representation of the instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The returned string consists of the object type, as it would be reported by the base ToString method, followed by the FullName and IsLoaded property values. |