BTW: I have noticed that there is a missing error handling in SafeFileHandle.Type on Windows. Console.WriteLine(new SafeFileHandle(12345678, false).Type); returns Unknown on Windows, but it should throw an exception due to an error instead.
Originally posted by @jkotas in #126318 (comment)
BTW: I have noticed that there is a missing error handling in SafeFileHandle.Type on Windows.
Console.WriteLine(new SafeFileHandle(12345678, false).Type);returns Unknown on Windows, but it should throw an exception due to an error instead.Originally posted by @jkotas in #126318 (comment)