日期:2014-05-19  浏览次数:20564 次

c#中的 typeof 是什么意思?
c#中的     typeof     是什么意思?

------解决方案--------------------
typeof运算符返回一个特定类型的Type对象,
如typeof(string)返回System.String类型的Type对象
------解决方案--------------------
相当于
Object.GetType()
------解决方案--------------------
获得某一类型的 System.Type 对象


typeof( "System.String ")
获取string类型的Type
Type是一个数据类型
------解决方案--------------------
获取对象类型