Class AssemblySlim
Lightweight representation of an assembly, i.e. a container for types.
Inheritance
Implements
Namespace: System.Reflection
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public sealed class AssemblySlim : Object, IEquatable<AssemblySlim>
Constructors
AssemblySlim(String)
Creates a new assembly representation object.
Declaration
public AssemblySlim(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the assembly. |
Properties
Name
Gets the name of the assembly.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(Object)
Checks whether the specified object is equal to the current instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Equals(AssemblySlim)
Checks whether the specified assembly is equal to the current instance.
Declaration
public bool Equals(AssemblySlim other)
Parameters
Type | Name | Description |
---|---|---|
AssemblySlim | other | The assembly to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Gets a hash code for the current instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current instance. |
ToString()
Returns a friendly string representation of the assembly.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Friendly string representation of the assembly. |
Operators
Equality(AssemblySlim, AssemblySlim)
Checks if two assemblies are equal.
Declaration
public static bool operator ==(AssemblySlim first, AssemblySlim second)
Parameters
Type | Name | Description |
---|---|---|
AssemblySlim | first | The first assembly to compare. |
AssemblySlim | second | The second assembly to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Inequality(AssemblySlim, AssemblySlim)
Checks if two assemblies are not equal.
Declaration
public static bool operator !=(AssemblySlim first, AssemblySlim second)
Parameters
Type | Name | Description |
---|---|---|
AssemblySlim | first | The first assembly to compare. |
AssemblySlim | second | The second assembly to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|