wpf
wpf copied to clipboard
More uses of ArgumentNullException.ThrowIfNull and ArgumentException.ThrowIfNullOrEmpty
Follow-up to #8092 and others
Description
Use ArgumentNullException.ThrowIfNull more widely across codebase, addressing leftovers from previous PRs. This also makes some uses of ArgumentException.ThrowIfNullOrEmpty, and remove redundant custom error messages. Lastly, this replaces an internal throw helper with ArgumentNullException.ThrowIfNull.
Regression
No
Testing
CI
Risk
Low. Changes are mechanic
Microsoft Reviewers: Open in CodeFlow
@halgab - There are multiple test failure has been reported for this PR. Could you please take a look?
To name few of them are: -
- DrtDocumentViewerSuite
- DrtFixedEdit
- DrtFixedPanel
- DrtMetroTest
- DrtSequence