首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

c#中的 typeof 是什么意思?解决方法

2012-03-04 
c#中的typeof是什么意思?c#中的typeof是什么意思?[解决办法]typeof运算符返回一个特定类型的Type对象,如ty

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

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


typeof( "System.String ")
获取string类型的Type
Type是一个数据类型
[解决办法]
获取对象类型

热点排行