-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
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
Add new System.ComponentModel.DataAnnotations features #82311
Add new System.ComponentModel.DataAnnotations features #82311
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @ajcvickers, @bricelam, @roji Issue DetailsFix #77402.
|
...ystem.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/RangeAttribute.cs
Show resolved
Hide resolved
All new attributes have now been implemented -- marking ready for review. Each attribute has been segregated into a separate commit for easier reviewing. |
...omponentModel.Annotations/src/System/ComponentModel/DataAnnotations/Base64StringAttribute.cs
Show resolved
Hide resolved
...stem.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/LengthAttribute.cs
Show resolved
Hide resolved
...stem.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/LengthAttribute.cs
Show resolved
Hide resolved
...stem.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/LengthAttribute.cs
Outdated
Show resolved
Hide resolved
...stem.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/LengthAttribute.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.ComponentModel.Annotations/src/Resources/Strings.resx
Outdated
Show resolved
Hide resolved
src/libraries/System.ComponentModel.Annotations/src/Resources/Strings.resx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replied to a couple of resolved comments just in case you didn't see it. LGTM, otherwise.
612aeca
to
abecdf1
Compare
foreach (object? allowed in Values) | ||
{ | ||
if (allowed is null ? value is null : allowed.Equals(value)) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Shouldn't the variable name be disallowed
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good point. Would you be interested in contributing a fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How? I'm newbie here. Don't know the best approach. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that the change is fairly simple, you might be able to send a PR directly from the browser. Open up
And hit the edit button:
Make the change and follow the instructions to submit a PR. Done :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting this in place for Preview 2, @eiriktsarpalis! Looks good!
Fix #77402. Each attribute has been segregated into a separate commit for easier reviewing.