上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 120 下一页
摘要: using System.Reflection; static void EnvironmentDemo() { var pis = typeof(Environment).GetProperties().OrderBy(x=>x.Name).ToList(); for(int i=0;i<pis. 阅读全文
posted @ 2020-03-30 18:09 FredGrit 阅读(114) 评论(0) 推荐(0)
摘要: 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 阅读(2712) 评论(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 阅读(203) 评论(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 阅读(310) 评论(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 阅读(341) 评论(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 阅读(226) 评论(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 阅读(232) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { SystemThreadingTimerDemo(); Console.ReadLine(); } static void SystemThreadingTimerDemo() { System.Threading.Timer ti 阅读全文
posted @ 2020-03-11 14:27 FredGrit 阅读(384) 评论(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 阅读(220) 评论(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 阅读(180) 评论(0) 推荐(0)
上一页 1 ··· 98 99 100 101 102 103 104 105 106 ··· 120 下一页