dotnet / dotnet/docs

Update code snippets to use exception throw helpers

Open
#40,670 0 comments 0 reactions 1 assignee Claimed by @gewarren View on GitHub
:watch: Not Triaged
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Describe the issue or suggestion

Code analysis rules advise users to use exception throw helpers, such as ArgumentNullException.ThrowIfNull (see full list here: https://github.com/dotnet/runtime/issues/86341#issue-1712427952). We should update all our code snippets to use these helpers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.