上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 76 下一页
摘要: static void BinaryWriterReaderDemo() { using (FileStream fs = new FileStream("fs.txt", FileMode.Create)) { SaveData(fs); } using(FileStream fs=new Fil 阅读全文
posted @ 2020-06-05 14:48 FredGrit 阅读(290) 评论(0) 推荐(0) 编辑
摘要: static void FileStreamWriterReadDemo() { string textFile = "fs.txt"; using (FileStream fs = new FileStream(textFile, FileMode.Create)) { using (Stream 阅读全文
posted @ 2020-06-04 12:05 FredGrit 阅读(167) 评论(0) 推荐(0) 编辑
摘要: using System.Globalization; static void GetCultureInfos() { var cultures = CultureInfo.GetCultures(CultureTypes.AllCultures).OrderBy(x => x.Name).ToLi 阅读全文
posted @ 2020-06-03 15:11 FredGrit 阅读(402) 评论(0) 推荐(0) 编辑
摘要: Named pipe (more flexible)Allows two-way communication between arbitrary processes on the same computer or different computers across a network.A pipe 阅读全文
posted @ 2020-06-02 11:13 FredGrit 阅读(267) 评论(0) 推荐(0) 编辑
摘要: static void FileStreamSDemo() { DateTime dtNow = DateTime.Now; DateTime dtEnd = dtNow.AddSeconds(60); using(FileStream fs=new FileStream("FileStream.t 阅读全文
posted @ 2020-06-01 21:57 FredGrit 阅读(215) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { A(); Console.ReadLine(); } static void A() { B(); } static void B() { C(); } static void C() { StackTrace s = new St 阅读全文
posted @ 2020-06-01 14:40 FredGrit 阅读(110) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { DoWorkProxy(); Console.ReadLine(); } [DebuggerStepThrough,DebuggerHidden] static void DoWorkProxy() { PrintTime(); } 阅读全文
posted @ 2020-06-01 11:10 FredGrit 阅读(114) 评论(0) 推荐(0) 编辑
摘要: static void ListTimeZoneInfos() { StringBuilder timeBuilder = new StringBuilder(); var timeZoneInfoList = TimeZoneInfo.GetSystemTimeZones().OrderBy(x= 阅读全文
posted @ 2020-05-31 21:24 FredGrit 阅读(160) 评论(0) 推荐(0) 编辑
摘要: string inputStr = "'some string'"; string outputStr = inputStr.Trim(new char[]{(char)39}); 阅读全文
posted @ 2020-05-27 20:59 FredGrit 阅读(121) 评论(0) 推荐(0) 编辑
摘要: static void MockHeartBeatViaWhileTrue() { while (true) { Console.WriteLine($"Now is {DateTime.Now.ToString("yyyyMMddHHmmssffff")}"); Thread.Sleep(2000 阅读全文
posted @ 2020-05-17 12:24 FredGrit 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 76 下一页