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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Currently I'm validating one of my properties with the CompareAttribute.
The implementation is pretty straight forward and looks like this:
The RequiredAttribute is validated perfectly but the CompareAttribute isn't validated at all.
I try to create a custom implementation of the CompareAttribute and I notice, when IsValid is called, the ValidationContext is always null.
Is this a bug or what I'm doing wrong? I'm using .Net 7 in combination with .Net MAUI.
Thanks,
Phil
Beta Was this translation helpful? Give feedback.
All reactions