You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
nathan-alden-sr
changed the title
Consider adding a Validate method overload with [CallerMemberName]
Consider adding Validate/ValidateAsync method overloads that use [CallerMemberName]
Jul 2, 2016
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).
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:
The text was updated successfully, but these errors were encountered: