实验代码:
static void Main(string[] args) { //System.Type string s = "hello refelction"; Type t = s.GetType(); //方法一 Console.WriteLine(t.FullName); Type t2 = Type.GetType("system.String", false, true);//方法一 Console.WriteLine(t2.FullName); Type t3 = typeof(string);//方法一 Console.WriteLine(t3.FullName); Console.ReadKey(); }
效果图:
原文:http://www.cnblogs.com/birdofparadise/p/7015580.html