C#静态构造函数如何初始化
如题:在调用Get_Paylist时,父类的静态构造函数怎没有初始化,如果让它初始化??
public class Basicfee : BaseClass
{
public static string Get_Paylist(Dictionary<string, string> dic)
{
return dic["jke"];
}
}
public class BaseClass
{
public BaseClass()
{
if (DataCache.GetCache("MaxPageSize") == null)
{
DataCache.AddCache("MaxPageSize", Convert.ToString(ConfigurationManager.AppSettings["MaxPageSize"]));
}
}
}