We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Other (describe below)
[Enter feedback here] Logical error:
if CompareTo result is not >0 it may be Zero as well, which is not reflected in the result message (should be "equal or smaller").
if (((IComparable)value).CompareTo(otherValue) > 0) { return ValidationResult.Success; }
return new("The current value is smaller than the other one");
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/observablevalidator
https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/mvvm/ObservableValidator.md
0b0d4bb1-f1a9-4fa9-af90-e5d30b436701
@Sergio0694
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Type of issue
Other (describe below)
Description
[Enter feedback here]
Logical error:
if CompareTo result is not >0 it may be Zero as well, which is not reflected in the result message (should be "equal or smaller").
if (((IComparable)value).CompareTo(otherValue) > 0)
{
return ValidationResult.Success;
}
Page URL
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/observablevalidator
Content source URL
https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/mvvm/ObservableValidator.md
Document Version Independent Id
0b0d4bb1-f1a9-4fa9-af90-e5d30b436701
Article author
@Sergio0694
Metadata
The text was updated successfully, but these errors were encountered: