上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 94 下一页
摘要: using System.Net.Http; static void Main(string[] args) { var httpTask = Task<string>.Run<string>(() => { return MainAsync(); }); httpTask.Wait(); Cons 阅读全文
posted @ 2020-03-24 09:59 FredGrit 阅读(2639) 评论(0) 推荐(2) 编辑
摘要: static DataTable SplitJsonValueToDataTable(string postResult) { DataTable dt = new DataTable(); try { string[] dataArr = postResult.Split(new string[] 阅读全文
posted @ 2020-03-20 18:11 FredGrit 阅读(198) 评论(0) 推荐(0) 编辑
摘要: using System.Security.Cryptography; static void Main(string[] args) { string rawString = "Make every second count."; string encryptedString = Encrypt3 阅读全文
posted @ 2020-03-19 10:59 FredGrit 阅读(300) 评论(0) 推荐(0) 编辑
摘要: static void WebClientDownLoad() { string url = "http://p4.ssl.cdn.btime.com/t0167dce5a13c3da30d.jpg?size=5012x3094"; WebClient client = new WebClient( 阅读全文
posted @ 2020-03-17 17:14 FredGrit 阅读(331) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; n 阅读全文
posted @ 2020-03-17 11:45 FredGrit 阅读(223) 评论(0) 推荐(0) 编辑
摘要: public enum Seasons { Spring,Summer,Autumn,Winter } static string GetEnumItemName(Enum enumItem) { string itemName = Enum.GetName(enumItem.GetType(), 阅读全文
posted @ 2020-03-11 18:24 FredGrit 阅读(220) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { SystemThreadingTimerDemo(); Console.ReadLine(); } static void SystemThreadingTimerDemo() { System.Threading.Timer ti 阅读全文
posted @ 2020-03-11 14:27 FredGrit 阅读(373) 评论(0) 推荐(0) 编辑
摘要: static void CheckedUnCheckedDemo() { int i = int.MaxValue; try { //checked //{ // Console.WriteLine(i + 1); //} unchecked { Console.WriteLine(i + 1); 阅读全文
posted @ 2020-02-28 16:01 FredGrit 阅读(215) 评论(0) 推荐(0) 编辑
摘要: A finally block does not always xecute. The code in the try block could go into an infinite loop, the exception could rigger a “fail fast” (which take 阅读全文
posted @ 2020-02-28 15:48 FredGrit 阅读(171) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Threading; using Newtonsoft.Json; using System 阅读全文
posted @ 2020-02-25 10:02 FredGrit 阅读(485) 评论(0) 推荐(0) 编辑
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 94 下一页