We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following methods throw System.NullReferenceException when their enumerationOptions parameter is null:
System.NullReferenceException
enumerationOptions
null
Directory.EnumerateFiles(String, String, EnumerationOptions)
Directory.EnumerateDirectories(String, String, EnumerationOptions)
Directory.EnumerateFileSystemEntries(String, String, EnumerationOptions)
Instead, they should throw System.ArgumentNullException when enumerationOptions parameter is null.
System.ArgumentNullException
Directory.EnumerateFiles(@"C:\", "*", (EnumerationOptions)null);
No response
.NET SDK 9.0.203
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-io See info in area-owners.md if you want to be subscribed.
Sorry, something went wrong.
Please feel free to submit a PR to fix it. Thanks.
@huoyaoyuan, thank you for providing the PR, looks good to me.
Successfully merging a pull request may close this issue.
Description
The following methods throw
System.NullReferenceException
when theirenumerationOptions
parameter isnull
:Directory.EnumerateFiles(String, String, EnumerationOptions)
Directory.EnumerateDirectories(String, String, EnumerationOptions)
Directory.EnumerateFileSystemEntries(String, String, EnumerationOptions)
Instead, they should throw
System.ArgumentNullException
whenenumerationOptions
parameter isnull
.Reproduction Steps
Expected behavior
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
.NET SDK 9.0.203
Other information
No response
The text was updated successfully, but these errors were encountered: