msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Use CallerArgumentExpression for internal assert-like constructs

Open rainersigwald opened this issue 1 year ago • 0 comments

CallerArgumentExpression is a new (C# 10) language feature that allows us to simplify a bunch of our assert-like code to drop the redundant specifications of, like, "which argument is null?".

I strongly recommend reviewing commit-by-commit; the bulk of the changes are a regex replace on top of a framework that is fairly small.

rainersigwald avatar Oct 14 '24 19:10 rainersigwald