C# 中 typeof() 与 GetType() 有什么区别?
ITPOW2016/10/23 17:19:18
返回结果都一样,只是用法不一样。
typeof 是获取
类型
的 Type。
GetType 是获取
对象
的 Type。
<<返回首页<<