Replies: 2 comments 23 replies
|
It looks like a corner case for dictionary. MultiValueDictionary can be represented by public static IReadOnlyCollection<TValue> TryGetValues<TKey, TValue, TCollection>(this IDictionary<TKey, TCollection> dictionary)
where TKey : notnull
where TCollection : class, IReadOnlyCollection<TValue>;Is it reasonable for you? If yes, you can provide a set methods you want to see in the library as a proposal. |
23 replies
|
Types with value equality semantics like |
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.
Is there a chance to include the MultiValueDictionary class from the old Microsoft.Experimental.Collections package in dotNext: https://devblogs.microsoft.com/dotnet/multidictionary-becomes-multivaluedictionary/
Or is there a reason to keep it out? I personally found it very useful in production code and safes you from writing boilerplate code for Dictionaries where the value is a list or set.
All reactions