只是好奇.
是否有任何时候调用.GetType()一个对象将返回null?
.GetType()
假设用法:
public Type MyMethod( object myObject ) { return myObject.GetType(); }
c# types
c# ×1
types ×1