摘要: 总结以下三种方法,实现c#每隔一段时间执行代码:方法一:调用线程执行方法,在方法中实现死循环,每个循环Sleep设定时间;方法二:使用System.Timers.Timer类;方法三:使用System.Threading.Timer; using System; using System.Collections; using System.Threading; public class Test{ public static void Main() { Test obj = new Test(); Console.WriteLine(Threa... 阅读全文
posted @ 2012-11-02 08:58 ming_king 阅读(342) 评论(0) 推荐(0) 编辑