There are and where different ways of doing this.
I want to support the previous versions as well.
// resolve parameter automatically with extension
foo.NotNull();
// resolve parameter automatically with method
ArgumentGuard.NotNull(foo);
// resolve manually with method
ArgumentGuard.NotNull(foo, nameof(foo));
There are and where different ways of doing this.
I want to support the previous versions as well.