1:other.GetType()与typeof(other)有什么区别?如果没区别为什么编译效果不一样2: public ILineSymbol LineSymbol()
{
get;
{ return null;
}
set;
{ }
}与
public ILineSymbol LineSymbol
{
get
{ return null;
}
set
{ }
}有什么区别?
{
get;
{ return null;
}
set;
{ }
}与
public ILineSymbol LineSymbol
{
get
{ return null;
}
set
{ }
}有什么区别?
typeof(other);//other必须是一个类型名称2:我没见过这种写法
public ILineSymbol LineSymbol()
{
get;
{ return null;
}
set;
{ }
}
obj.GetType()//中的obj是一个实例它们的返回结果是一样的,都是System.Type类的一个实例(应该是这样吧)