在普通属性里可以通过this获得type,进而获得FullName
例如:
public class1
{
...
public int IM{
get{
Type type = this.GetType();
string str = type.FullName;
......
}
set{}
}
}
如果是一个static方法如何获得
...全文
12314打赏收藏
如何在static属性获得本类型的FullName
在普通属性里可以通过this获得type,进而获得FullName 例如: public class1 { ... public int IM{ get{ Type type = this.GetType(); string str = type.FullName; ...... } set{} } } 如果是一个static方法如何获得