Returns a string representation of the value of the current instance.
A string representation of the current instance. The string takes into account the current system culture.
This method returns the Assembly.FullName of the current assembly.
Note: This method overrides object.ToString .
The following example demonstrates the use of the Assembly.ToString method in 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.ToString()); } }The output is
HelloWorld, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0