In This Article

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.

public string FullName { get; }

Property Value

string

Name

The simple name of the assembly.

public string? Name { get; }

Property Value

string

Version

The major, minor, build, and revision numbers of the assembly.

public Version? Version { get; }

Property Value

Version

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:

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

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

AssemblyName

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods