public class DomainHelper
{
public static void SetDomainValue(
string key,
object password)
{
AppDomain.CurrentDomain.SetData(key, password);
}
public static T GetDomainValue<T>(
string key)
{
object value=
AppDomain.CurrentDomain.GetData(key) ;
if(value==
null)
return default(T);
return (T)value;
}
}
View Code
转载于:https://www.cnblogs.com/shenchao/p/5081594.html
相关资源:JAVA上百实例源码以及开源项目
转载请注明原文地址: https://mac.8miu.com/read-61704.html