Replies: 1 comment 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. |
Beta Was this translation helpful? Give feedback.
23 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions