Closed nathan-alden-sr closed 8 years ago
Introduced ValidateCaller/ValidateCallerAsync methods. Decided to go with different method names because adding [CallerMemberName] to existing methods Validate/ValidateAsync methods would cause the "Explicit argument passed to parameter with caller info attribute" warning whenever the Validate is called with explicit property name (e.g. somewhere outside of a property setter).
Thanks! This will be a good improvement to a good library. :+1:
Any idea when this might be available on NuGet?
Consider adding a
ValidationHelper.Validate([CallerMemberName] string propertyName)
overload to help avoid the need for a delegate.This, within a Name property's getter:
becomes this: