Commit c88c7de
Update sample.cs (#8741)
* Update sample.cs
- 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.
* Apply suggestions from code review
---------
Co-authored-by: Genevieve Warren <[email protected]>1 parent 0bb5c05 commit c88c7de
File tree
1 file changed
+2
-7
lines changed- snippets/csharp/Microsoft.Win32.SafeHandles/SafeWaitHandle/Overview
1 file changed
+2
-7
lines changedLines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 59 | + | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
| |||
105 | 100 | | |
106 | 101 | | |
107 | 102 | | |
108 | | - | |
| 103 | + | |
0 commit comments