随笔分类 -  C#

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

点击右上角即可分享
微信分享提示