File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ Follow these C# coding conventions for consistency across the project.
2020
2121* MUST use ` var ` when the type is obvious from the right side of the assignment.
2222* MUST use appropriate null-checking pattern based on package availability:
23- - When ` NetEvolve.Arguments ` package is referenced in project: Use ` Argument.ThrowIfNull(x) `
24- - When ` NetEvolve.Arguments ` package is NOT referenced: Use ` ArgumentNullException.ThrowIfNull(x) `
23+ - Use ` ArgumentNullException.ThrowIfNull(x) `
2524 - Check ` Directory.Packages.props ` for ` NetEvolve.Arguments ` availability
2625 - Example with NetEvolve.Arguments:
2726 ``` csharp
2827 public void ProcessData (string data )
2928 {
30- Argument .ThrowIfNull (data );
29+ ArgumentNullException .ThrowIfNull (data );
3130 // process data
3231 }
3332 ```
You can’t perform that action at this time.
0 commit comments