public class Manager
{
private static Manager _instance;
public static Manager Instance
{
get{return Manager._instance;} //這樣寫有什麼用呢?
}
public bool a(){
return a;
}
}
public class test{
Manager.Instance.active;
Manager.Instance.a(); //請問在這段代碼中,Instance是一個什麼樣的調用關系?
} //為什麼既可以調用active又可以調用Manager裡面的方法呢?
http://www.cnblogs.com/BoyXiao/archive/2010/05/07/1729376.html?login=1
http://baike.baidu.com/link?url=ln2Yp8CqOmpHd5_2mK3MrB7CwU5B3rTQky1lTF5FIKZY1ZcE3CUSFDuAkCdvH4Px6ZJynLTWJZh7sWMgMwNVba