Show / Hide Table of Contents

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
System.Object
DependentAssemblyInfo
Namespace: WizardWrx.AssemblyUtils
Assembly: WizardWrx.AssemblyUtils.dll
Syntax
public class DependentAssemblyInfo : IComparable<DependentAssemblyInfo>

Constructors

| Improve this Doc View Source

DependentAssemblyInfo(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 Source

IS_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
| Improve this Doc View Source

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 Source

AssemblyDetails

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
| Improve this Doc View Source

FullName

Get the FullName of the assembly.

Declaration
public string FullName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

IsLoaded

Get the load state of the assembly.

Declaration
public bool IsLoaded { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

DestroyOwneAppdDomains()

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetHashCode()

Return the HashCode property of the FullName property of the instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
| Improve this Doc View Source

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()
| Improve this Doc View Source

MarkAsLoaded(Assembly)

Call this method to mark an assembly as loaded.

Declaration
public void MarkAsLoaded(Assembly pasmThis)
Parameters
Type Name Description
Assembly pasmThis
| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX