In This Article

AssemblyName Class

Stores an IAssembly name.

public class AssemblyName : IAssemblyName
Inheritance:
object object
Implements:
IAssemblyName

Constructors

AssemblyName(AssemblyName)

Initializes a new instance of the AssemblyName class.

public AssemblyName(AssemblyName assemblyName)
Parameter Type Description
assemblyName AssemblyName

The system reflection AssemblyName to examine.

AssemblyName(string)

Initializes a new instance of the AssemblyName class.

public AssemblyName(string name)
Parameter Type Description
name string

The simple name of the assembly.

AssemblyName(string, Version)

Initializes a new instance of the AssemblyName 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

Gets the full name of the assembly, also known as the display name.

public string FullName { get; }

Property Value

string:

The full name of the assembly, also known as the display name.

Name

Gets the simple name of the assembly.

public string Name { get; }

Property Value

string:

The simple name of the assembly.

Version

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

public Version Version { get; }

Property Value

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 to the current Object.

Returns

bool:

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

GetHashCode()

Returns a hash code for this object.

public override int GetHashCode()

Returns

int:

An integer value that specifies a hash value for this 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 a String that represents the current Object.

public override string ToString()

Returns

string:

A String that represents the current Object.

Inherited Members