Public Function IsFileReady(ByVal filepath As String) As Boolean '检查文件是否正在被使用的函数If File.Exists(filepath) = False ThenReturn TrueExit Function '如果filpath文件不存在,也就不没有被占用,应该返回trueEnd IfTryFile.Open(filepath, FileMode.Open).Close()Return TrueCatch e As Except...【阅读全文】
http://blog.tom.com/blog/read.php?bloggerid=313638&blogid=13505Thread and Sync In C# (C#中的线程与同步)别相信别人告诉你的所有的事。其实C#中的线程是很简单的。线程是程序中的控制流程的封装。你可能已经习惯于写单线程程序,也就是,程序在它们的代码中一次只在一条路中执行。如果你多弄几个线程的话,代...【阅读全文】