1.

Why do we use the AssemblyQualifiedName Property in C#?

Answer»

The AssemblyQualifiedName property DISPLAYS the QUALIFIED assembly name associated with a TYPE. The program that demonstrates this property is as follows:

using System;   using System.Reflection;   public class Demo   {      public static VOID Main()      {         Type t = TYPEOF(System.Object);        Console.WriteLine ("Qualified assembly name:\n   {0}.", t.AssemblyQualifiedName.ToString());    } }

The output of the above program is as follows:

Qualified assembly name:
System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.



Discussion

No Comment Found