上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 120 下一页
摘要: 1.install-package log4net 2.add new config file, its name is log4net.config <?xml version="1.0" encoding="utf-8" ?><configuration> <log4net> <root> <l 阅读全文
posted @ 2020-01-03 11:29 FredGrit 阅读(387) 评论(0) 推荐(0)
摘要: I had validated that different encoding mode can generate different result,they are not identical. Besides,the File.ReadAllBytes may based on UTF8 bec 阅读全文
posted @ 2020-01-01 21:17 FredGrit 阅读(256) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { WebClientDemo(); Console.ReadLine(); } static void WebClientDemo() { webContent = File.ReadAllText("img2.txt"); var urlsList = webContent.Split(new string[] { "\"", " 阅读全文
posted @ 2019-12-30 09:44 FredGrit 阅读(300) 评论(0) 推荐(0)
摘要: static void CancelDemo() { int i = 0; //Console.WriteLine("Press ESC to stop"); //while (!(Console.KeyAvailable && Console.ReadKey(true).Key == ConsoleKey.Escape)) //{ // Console.WriteLine(++i); //} C 阅读全文
posted @ 2019-12-26 10:15 FredGrit 阅读(174) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO.Compression; using System.IO; using System.Diagnostics; namespace ... 阅读全文
posted @ 2019-12-23 14:54 FredGrit 阅读(791) 评论(0) 推荐(0)
摘要: static byte[] GetBytesFromDic(Dictionary<string,string> dic) { if(dic==null || !dic.Any()) { return null; } using (MemoryStream ms = new MemoryStream()) { BinaryFormatter binFormatter = new BinaryForm 阅读全文
posted @ 2019-12-17 11:30 FredGrit 阅读(308) 评论(0) 推荐(0)
摘要: static byte[] GetBytesFromDic(Dictionary<string,string> dic) { if(dic==null || !dic.Any()) { return null; } using (MemoryStream ms = new MemoryStream( 阅读全文
posted @ 2019-12-12 16:53 FredGrit 阅读(1228) 评论(0) 推荐(0)
摘要: C# get dictionary md5 static string GetDicMD5(string dirFullName) { logBuilder = new StringBuilder(); Dictionary<string, string> folderMd5Dic = GetFol 阅读全文
posted @ 2019-12-12 16:02 FredGrit 阅读(322) 评论(0) 推荐(0)
摘要: From https://www.cnblogs.com/zjbky/p/9242140.html 阅读全文
posted @ 2019-12-10 19:52 FredGrit 阅读(518) 评论(0) 推荐(1)
上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 120 下一页