随笔分类 - C#
摘要:static void Main(string[] args) { var task = IntTask(); Console.WriteLine("等待中..."); Console.WriteLine($"算完了? 让我康康! result = {task.Result}"); Console.
阅读全文
摘要:[csharp] DateTime dt=DateTime.Now; int weeknow = Convert.ToInt32(DateTime.Now.DayOfWeek); int dayspan = (-1) * weeknow + 1; DateTime dt2=dt.AddMonths(
阅读全文
摘要:原文链接:http://hi.baidu.com/endyli/item/7bf074945de35e1f934f41fe 来源: NDC(NetworkDiskClient)的界面和后台程序之间用Socket通信,发送命令。 环境:界面:C# winform 后台:Vc++,消息通知 网络通信,C
阅读全文
摘要:1.C#判断字符串中是否含有汉字stringstrTmp ="se 5王%# @e";使用正则表达式Regexr =newRegex(@"[\u4e00-\u9fa5]+");Matchmc = r.Match(strTmp);if(mc.Length!=0){Console.WriteLine("...
阅读全文