alphaleonis / AlphaFS

AlphaFS is a .NET library providing more complete Win32 file system functionality to the .NET platform than the standard System.IO classes.
http://alphafs.alphaleonis.com/
MIT License
563 stars 99 forks source link

Replace handle.IsInvalid checks with a call to method NativeMethods.IsValidHandle(). #387

Closed Yomodo closed 6 years ago

Yomodo commented 6 years ago

By calling method NativeMethods.IsValidHandle() the invalid handle will at least always be closed.