Skip to content

Why do ValidationAttributes still have RequiresValidationContext property, when it's not being used? #43941

Answered by huoyaoyuan
kikaragyozov asked this question in Q&A
Discussion options

You must be logged in to vote

It should be purely for compatibility, because we cannot remove public api, or user code may issue with TypeLoadException or MissingMemberException.
Having an extra virtual property gives very little harm to the runtime.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kikaragyozov
Comment options

Answer selected by kikaragyozov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants