Params and Overrides #5243
Unanswered
TonyValenti
asked this question in
Q&A
Replies: 1 comment
-
Because of this section of the specification: https://github.com/dotnet/csharpstandard/blob/draft-v6/standard/expressions.md#125-member-lookup. Specifically, new members (overridden members are not considered new, but your params overload is a new member) are considered first, before members from a base type. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With this code:
Why does
.ToString()
resolve topublic string ToString(params int[] Values)
and notpublic override string ToString()
?Beta Was this translation helpful? Give feedback.
All reactions