www.cftea.com

C# 中 typeof() 与 GetType() 有什么区别?

ITPOW2016/10/23 17:19:18

返回结果都一样,只是用法不一样。

typeof 是获取类型的 Type。

GetType 是获取对象的 Type。

<<返回首页<<