Skip to content

Commit 8b15e80

Browse files
committed
chore(template): sync with dailydevops/template-dotnet [skip ci]
1 parent b2e4e6e commit 8b15e80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/instructions/csharp.instructions.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)