Skip to content

Conversation

zacharylayne
Copy link
Contributor

Summary

  • Fixed first if-statement in Create method: currently checks to see if nameValue == null and nameValue.Length == 0. Should check if one or the other.
  • Changed exception thrown from above if-statement from ArgumentNullException to ArgumentException and replaced argument with nameof expression.
  • Removed unnecessary empty lines.

- Fix first if-statement in Create method: currently checks to see if `nameValue == null` **and** `nameValue.Length == 0`. Should check if one or the other.
- Change exception thrown from above if-statement from `ArgumentNullException` to `ArgumentException` and replaced argument with `nameof` expression.
- Remove unnecessary empty lines.
@zacharylayne zacharylayne requested a review from a team as a code owner December 27, 2022 12:34
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Dec 27, 2022
@ghost
Copy link

ghost commented Dec 27, 2022

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@learn-build-service-prod
Copy link

Learn Build status updates of commit 7806c5c:

✅ Validation status: passed

File Status Preview URL Details
snippets/csharp/Microsoft.Win32.SafeHandles/SafeWaitHandle/Overview/sample.cs ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zacharylayne

@gewarren gewarren enabled auto-merge (squash) August 29, 2024 00:28
Copy link

Learn Build status updates of commit 8d1bdc5:

✅ Validation status: passed

File Status Preview URL Details
snippets/csharp/Microsoft.Win32.SafeHandles/SafeWaitHandle/Overview/sample.cs ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@gewarren gewarren merged commit c88c7de into dotnet:main Aug 29, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Microsoft.Win32 community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants