【发布时间】:2018-08-18 10:18:03
【问题描述】:
我想使用在另一个引用项目中声明的静态类的静态属性中的Session 值。有些属性是每个应用程序,有些是每个用户:
public class MyClass
{
public static string var1 { get; set; } //Always static
public static string var2 { get; set; } //Need to use Session[Var2]
public static string var3 { get; set; } //Always static
public static string var4 { get; set; } //Need to use Session[Var4]
}
【问题讨论】: