上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 120 下一页
摘要: 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 阅读(498) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { InsertionSortDemo(); Console.ReadLine(); } static void InsertionSortDemo() { Random rnd = new Random(); int[] arr = 阅读全文
posted @ 2020-02-12 16:31 FredGrit 阅读(246) 评论(0) 推荐(0)
摘要: public static class StringHelper { public static bool IsCapitalized(this string str) { if(string.IsNullOrWhiteSpace(str)) { return false; } return cha 阅读全文
posted @ 2020-01-28 21:22 FredGrit 阅读(419) 评论(0) 推荐(1)
摘要: static void AggregateExceptionsDemo() { var task1 = Task.Factory.StartNew(() => { var child1 = Task.Factory.StartNew(() => { throw new CustomException 阅读全文
posted @ 2020-01-19 23:38 FredGrit 阅读(310) 评论(0) 推荐(0)
摘要: Below is applicable for ConsoleApplication 1.Install-package MouseKeyHook 2. using Gma.System.MouseKeyHook; using System; namespace ConsoleApp1 { publ 阅读全文
posted @ 2020-01-15 17:26 FredGrit 阅读(661) 评论(1) 推荐(0)
摘要: using System; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Diagnostics; namespace ConsoleApplication3 { class Monito 阅读全文
posted @ 2020-01-15 11:23 FredGrit 阅读(520) 评论(0) 推荐(0)
摘要: 1 static DataTable ConvertJsonToTable(string jsonValue) 2 { 3 DataTable dt = (DataTable)JsonConvert.DeserializeObject(jsonValue, typeof(DataTable)); 4 阅读全文
posted @ 2020-01-14 18:18 FredGrit 阅读(431) 评论(0) 推荐(0)
摘要: 1.Git Delete remote branch git push origin --delete remoteBranchName eg:git push origin --delete MyFirstRemoteBranch 2.Generate pub key. ssh-keygen -t 阅读全文
posted @ 2020-01-13 11:14 FredGrit 阅读(347) 评论(0) 推荐(0)
摘要: using System.IO; using System.Diagnostics; static void Main(string[] args) { CmdDemo("dir"); Console.ReadLine(); } static void CmdDemo(string cmdText) { var proc = new Process { StartInfo = new Proces 阅读全文
posted @ 2020-01-06 11:16 FredGrit 阅读(276) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { string[] enumNames = GetEnumNames(typeof(Seasons)); if(enumNames!=null && enumNames.Any()) { foreach(var name in enumNames) { Console.WriteLine(name); } } Console.Wri 阅读全文
posted @ 2020-01-03 14:59 FredGrit 阅读(279) 评论(0) 推荐(0)
上一页 1 ··· 99 100 101 102 103 104 105 106 107 ··· 120 下一页