Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update CustomValidationAttribute.xml#9775

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
zii-dmg wants to merge1 commit intodotnet:main
base:main
Choose a base branch
Loading
fromzii-dmg:patch-1

Conversation

@zii-dmg
Copy link

Summary

Fixed return type - no boolean, only ValidationResult allowed.

Fixes#3126

Fixed return type - no boolean, only ValidationResult allowed.Fixesdotnet#3126
@dotnet-policy-servicedotnet-policy-servicebot added the community-contributionIndicates that the PR has been added by a community member labelMar 29, 2024
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area:@ajcvickers

@learn-build-service-prod

Learn Build status updates of commitde6f204:

✅ Validation status: passed

FileStatusPreview URLDetails
xml/System.ComponentModel.DataAnnotations/CustomValidationAttribute.xml✅SucceededView

For more details, please refer to thebuild report.

For any questions, please:

@Arkane5
Copy link

This PR could be improved by mentioning some differences between versions:

  • In .Net Framework, the value of theValidationContext parameter is alwaysnull.
  • Starting with .Net Core 3.0 or .Net 5 (thiscommit), the return value can be a type derived fromValidationResult.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ajcvickersajcvickersAwaiting requested review from ajcvickers

1 more reviewer

@Jrr1050Jrr1050Jrr1050 approved these changes

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

area-System.ComponentModel.DataAnnotationscommunity-contributionIndicates that the PR has been added by a community member

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Incorrect CustomValidationAttribute remarks

3 participants

@zii-dmg@Arkane5@Jrr1050

[8]ページ先頭

©2009-2025 Movatter.jp