Open utterances-bot opened 2 years ago
Windows 中的 HRESULT
https://blog.walterlv.com/post/hresult-in-windows.html
学到了学到了
考虑本文写作的时间,C#语法已经可以采用when filter了,像这样:
catch (IOException ioe) when (ioe.IsDiskFullException())
另外尴尬的是,Disk Fill的HRESULT并没有真正被传递给IOException,参见https://github.com/dotnet/runtime/issues/100457
Windows 中的 HRESULT - walterlv
Windows 中的 HRESULT
https://blog.walterlv.com/post/hresult-in-windows.html