【发布时间】:2014-11-18 02:24:16
【问题描述】:
我有一个像
这样的抽象类public abstract class BaseController
{
private static string stype;
protected abstract List<int> integers();
public List<int> Execute()
{
return this.integers();
}
}
}
我有两个类继承自这个 basecontroller 类。
两个派生类的方法都通过启动线程从类中调用。
那么我想了解的是,上面类中的私有静态字段什么时候会被初始化呢?
谢谢
【问题讨论】:
标签: c# .net static-members