-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please introduce a reusable implementation of ILookup #23296
Comments
@weitzhandler hello, please format your proposal as per example linked here https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/api-review-process.md |
@danmosemsft updated |
@weitzhandler please present the API in reference format similar to |
You can copy/paste relevant part of https://github.com/dotnet/corefx/blob/master/src/System.Linq/ref/System.Linq.cs and add in your API. |
I'm sorry but I currently don't have the time to put it all up like that. Thanks for your effort @danmosemsft. |
Hi,
The
Lookup
class' constructor isprivate
, and itsCreate
methods areinternal
.I'd like to request to make the
Create
methods in lookup public, and/or introduce apublic
/protected
constructor to it, so we can benefit of having customLookup
implementations.Alternatively (preferable option), please provide a comprehensive solution to deal with mutable multi-value dictionaries (i.e. single key with multiple values).
The
MultiValueDictionary
in the corefxlab repo, implementsIReadOnlyDictionary
, which is immutable. I'd prefer a permanent editable multi-value dictionary.Here's a shallow way of how I achieve this, but it'll only work if the keys are immutable (just like
KeyedCollection
itself will).Gist
The text was updated successfully, but these errors were encountered: