Skip to content

Missing error handling in SafeFileHandle.Type on Windows #126617

@jkotas

Description

@jkotas

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)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions