AArnott / Validation

Method input validation and runtime checks that report errors or throw exceptions when failures are detected.
Microsoft Public License
131 stars 22 forks source link

Add ResourceManager overloads to Requires #77

Closed AArnott closed 3 years ago

AArnott commented 3 years ago

Or maybe we could add overloads to support this syntax:

Requires.Argument(a >= 0, nameof(a), Strings.ResourceManager, nameof(Strings.MustBePositive));

Originally posted by @AArnott in https://github.com/AArnott/Validation/issues/73#issuecomment-806284845