ITryGetValue Interface #73015
Unanswered
TonyValenti
asked this question in
Ideas
Replies: 1 comment
-
Successful interfaces describe capability, which we get from the
TryGetValue as an interface seems like it's just syntax to make sure everyone does it the same way... I don't know what real use it would have as a type (what would take an |
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.
-
In .NET 7.0, a new interface,
IParsable
was added that is awesome for standardizing all parsing interfaces.There are a number of classes that a
TryGetValue
method. It would be great if these could be adjusted to implement an interface so that code can target the interface directly instead of all implementors of it.There are two common shapes to TryGetValue:
It would be great if an ITryGetValue and an ITryGetValue<TInput, TResult> interface were introduced.
Beta Was this translation helpful? Give feedback.
All reactions