Mega Code Archive

 
Categories / C# Book / 09 Reflection
 

0610 Assembly qualified name

You can obtain a type through its assembly qualified name. The assembly implicitly loads as if you called Assembly.Load(string): using System; using System.Reflection; using System.Collections.Generic; class MainClass { static void Main() { Type t = Type.GetType("System.Int32, mscorlib, Version=2.0.0.0, " + "Culture=neutral, PublicKeyToken=b77a5c561934e089"); } }