Mono Class Library: System.Reflection.Assembly Overview | Members

System.Reflection.Assembly.ToString Method

Returns a string representation of the value of the current instance. [Edit]

public override string ToString ()

Returns

A string representation of the current instance. The string takes into account the current system culture. [Edit]

Remarks

This method returns the Assembly.FullName of the current assembly.

Note: This method overrides object.ToString .

[Edit]

Example

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

Requirements

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