有一个Global.asax
我想在这个里边的Application_Start方法里调用一个WebService类里的内部类
WebService类名为public class Service : System.Web.Services.WebService
内部类在这个Service类里,叫class CommonSetting最终结果就是在Application_Start里使用CommonSetting类里的属性如:
protected void Application_Start(object sender, EventArgs e)
{
CommonSetting.MaxConnections;
}namespace都是一样的
类和属性都是public的
怎么调用?
我想在这个里边的Application_Start方法里调用一个WebService类里的内部类
WebService类名为public class Service : System.Web.Services.WebService
内部类在这个Service类里,叫class CommonSetting最终结果就是在Application_Start里使用CommonSetting类里的属性如:
protected void Application_Start(object sender, EventArgs e)
{
CommonSetting.MaxConnections;
}namespace都是一样的
类和属性都是public的
怎么调用?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货