AssemblyName Class
Stores an IAssembly name.
public class AssemblyName : IAssemblyName
- Inheritance:
- object object
- Implements:
- IAssemblyName
Constructors
AssemblyName(AssemblyName)
Initializes an instance of the class.
public AssemblyName(AssemblyName assemblyName)
| Parameter | Type | Description |
|---|---|---|
| assemblyName | AssemblyName | The system reflection AssemblyName to examine. |
AssemblyName(string)
Initializes an instance of the class.
public AssemblyName(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | The simple name of the assembly. |
AssemblyName(string, Version?)
Initializes an instance of the class.
public AssemblyName(string name, Version? version)
| Parameter | Type | Description |
|---|---|---|
| name | string | The simple name of the assembly. |
| version | Version | The major, minor, build, and revision numbers of the assembly. |
Properties
FullName
The full name of the assembly, also known as the display name.
Name
The simple name of the assembly.
Version
The major, minor, build, and revision numbers of the assembly.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
- bool:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
ParseFullName(string)
Creates a new instance of the AssemblyName class based on the specified assembly full name.
public static AssemblyName ParseFullName(string fullName)
| Parameter | Type | Description |
|---|---|---|
| fullName | string | The assembly full name to examine. |
Returns
ToString()
Returns the string representation of this object.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)