摘要:
public static class XSerializer { /// /// 将对象序列化为xml字符串 /// /// 类型 /// 对象 public static string ObjectToXml(T t) where T : class { ... 阅读全文
posted @ 2018-02-19 19:45 火冰·瓶 阅读(124) 评论(0) 推荐(0)
|
摘要:
public static class XSerializer { /// /// 将对象序列化为xml字符串 /// /// 类型 /// 对象 public static string ObjectToXml(T t) where T : class { ... 阅读全文
posted @ 2018-02-19 19:45 火冰·瓶 阅读(124) 评论(0) 推荐(0)
摘要:
private static void Log(string content, string fileName="log.txt") { string logsPath = AppDomain.CurrentDomain.BaseDirectory + "\\App_Code\\logs\\"; string fil... 阅读全文
posted @ 2018-02-19 19:44 火冰·瓶 阅读(156) 评论(0) 推荐(0)
摘要:
public static string HttpGet(string Url, string postDataStr) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url + (postDataStr == "" ? "" : "?") + postDataSt... 阅读全文
posted @ 2018-02-19 09:58 火冰·瓶 阅读(124) 评论(0) 推荐(0)
摘要:
private string MD5(string str) { byte[] result = Encoding.Default.GetBytes(str); //tbPass为输入密码的文本框 MD5 md5 = new MD5CryptoServiceProvider(); byt... 阅读全文
posted @ 2018-02-19 09:54 火冰·瓶 阅读(114) 评论(0) 推荐(0)
摘要:
/// /// 10位时间戳转为C#格式时间 /// /// /// public static DateTime ConvertStringToDateTime(string timeStamp) ... 阅读全文
posted @ 2018-02-19 09:53 火冰·瓶 阅读(543) 评论(0) 推荐(0) |
||