会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
假如
博客园
首页
新随笔
联系
管理
订阅
2015年4月29日
C#函数运行超时则终止执行(任意参数类型及参数个数通用版)
摘要: 现在有更方便的实现方式: static void Main(string[] args) { string input = " "; Task.Factory.StartNew(() => { input = Console.ReadLine(); }).Wait(10 * 1000); Console.WriteLine(input); } 以下是原来...
阅读全文
posted @ 2015-04-29 16:59 假如
阅读(2840)
评论(0)
推荐(0)
编辑
公告