随笔分类 -  CommonHelper

摘要:public class FillOneDollarShareComparer : IEqualityComparer { // Products are equal if their names and product numbers are equal. public bool Equals(FillOneDollarSha... 阅读全文
posted @ 2016-07-29 14:22 FH1004322 阅读(272) 评论(0) 推荐(0)
摘要:public class MdFiveHashingHelper { /// /// 使用utf8编码将字符串散列 /// /// 要散列的字符串 /// 散列后的字符串 public string HashString(string sourceString) { ... 阅读全文
posted @ 2016-07-27 16:36 FH1004322 阅读(225) 评论(0) 推荐(0)
摘要:public class WriteLogHelper { private static object Locksrf2ImOb = new object(); public string FileName = System.Configuration.ConfigurationManager.AppSettings["UserImg_filePath"]... 阅读全文
posted @ 2016-07-27 16:35 FH1004322 阅读(190) 评论(0) 推荐(0)
摘要:public static class ConfigHelper { /// /// 签名KEY /// public static string sign_key = System.Configuration.ConfigurationManager.AppSettings["sign_key"] ?? ""; ... 阅读全文
posted @ 2016-07-27 16:34 FH1004322 阅读(155) 评论(0) 推荐(0)
摘要:public class JsonHelper { public JsonHelper() { } /// /// 把json字符串转成对象 /// /// 对象 /// json字符串 public static T Deserialize(string data) ... 阅读全文
posted @ 2016-07-27 16:34 FH1004322 阅读(182) 评论(0) 推荐(0)