Type t = Type.GetType("System.ComponentModel.DescriptionAttribute");
Type t2 = typeof(System.ComponentModel.DescriptionAttribute);t=null,而t2可以得到正确的类型,请问各位高手,这typeof()跟Type.GetType()有什么不一样吗???
注:Type t = Type.GetType("System.String");
Type t2 = typeof(System.String);t和t2则都可以得到正确的结果