摘要:
/// /// DES加密/解密类。 /// public class DESEncrypt { #region ========加密======== /// /// 加密 /// /// /// public static string Encrypt(string Text) { return Encrypt(Text, "Www.EasaA.Com"); } /// /// ... 阅读全文
摘要:
公司有做一个手机统计的饼状图后台读取数据时频繁的读取xml进行匹配(手机品牌和型号都是放到xml中),频繁的load xml无疑会增加整个页面的加载时间项目经理教我使用单例模式,仅需要一次load xml,就可以在全局中使用,类似于Application或Session首先,建一个公共的类DataService.csprivate static DataService instance; private DataService() { } public XmlDocument xmldoc_MobileBrand; public XmlDocument... 阅读全文