Mono Class Library: System.Reflection.Assembly Overview | MembersSystem.Reflection.Assembly.FullName Property |
Gets the full name of the assembly. [Edit]
|
A string containing the full name of the assembly. [Edit]
This property is read-only.
Operation
As described above.The full name is returned in the following format:
<assemblyTextualName>, Version=<major.minor.build.revision>, Culture=neutral, PublicKeyToken=<publicKeyToken>Note:The <assemblyTextualName> section of the string contains the textual name of the assembly, and is equivalent to the name of the file into which the assembly manifest is compiled. This name does not change even if the file with the assembly manifest is later renamed. For additional information about assembly manifests, see Partition II of the CLI Specification.
For information on the Version information in the full name of a System.Reflection.Assembly, see Version.
The <publicKeyToken> is a string containing the value of the public key token in hexadecimal format. A null publicKeyToken indicates that the current assembly is private. For additional information about public keys and public key tokens, see Partition II of the CLI Specification.
Usage
This property is used by the Assembly.ToString method. [Edit]
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
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0