wpf icon indicating copy to clipboard operation
wpf copied to clipboard

More uses of ArgumentNullException.ThrowIfNull and ArgumentException.ThrowIfNullOrEmpty

Open halgab opened this issue 2 years ago • 1 comments

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 avatar Nov 30 '23 09:11 halgab

@halgab - There are multiple test failure has been reported for this PR. Could you please take a look?

To name few of them are: -

  1. DrtDocumentViewerSuite
  2. DrtFixedEdit
  3. DrtFixedPanel
  4. DrtMetroTest
  5. DrtSequence

Kuldeep-MS avatar Apr 10 '24 10:04 Kuldeep-MS