System.Reflection.Assembly.FullName Property

Gets the display name of the assembly.

Syntax

public virtual string FullName { get; }

Value

A string containing the full name of the assembly.

Remarks

See System.Reflection.AssemblyName for a description of the format of the display name of an assembly.

Note:

Writing your own code to parse display names is not recommended. Instead, pass the display name to the AssemblyName.#ctor(string) constructor, which parses it and populates the appropriate fields of the new System.Reflection.AssemblyName.

In the .NET Framework version 2.0, processor architecture is added to assembly identity, and can be specified as part of assembly name strings. However, it is not included in the string returned by the Assembly.FullName property, for compatibility reasons. See AssemblyName.ProcessorArchitecture.

Example

The following example demonstrates using the Assembly.FullName property to get the full name of an assembly compiled into a file named "HelloWorld".

C# Example

using System;
using System.Reflection;

public class AssemblyExample {
 public static void Main() {

 Assembly a = Assembly.Load("helloworld");
 Console.WriteLine(a.FullName);
 } 
}
   

The output is

HelloWorld, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0