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则都可以得到正确的结果
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则都可以得到正确的结果
http://topic.csdn.net/t/20030407/17/1629801.html
那如何知道类是在哪个DLL里面呢?特别是.net里面自带的类,比如System.ComponentModel.DescriptionAttribute
有没有什么好的方法查到这个类对应的DLL