有没有办法检查文件是否被锁定而不使用try/catch块?
现在,我所知道的唯一方法就是打开文件并抓住任何文件System.IO.IOException.
System.IO.IOException
.net c# io filelock
.net ×1
c# ×1
filelock ×1
io ×1