Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Modify IReadableStringCollection to allow better querying of values #3

Closed
pranavkm opened this issue Feb 9, 2014 · 4 comments
Closed

Comments

@pranavkm
Copy link
Contributor

pranavkm commented Feb 9, 2014

  • Add a Keys and Count method so it looks somewhat like a collection
  • Modify GetValue to return a struct that returns either a single value or a list of values. This would avoid extra array allocations for the most common case when keys have exactly one value.
@loudej
Copy link
Contributor

loudej commented Feb 9, 2014

The strict would only need to be in the enumeration, getvalue/getvalues are simplest if they return string string[]

@davidfowl
Copy link
Member

@pranavkm @loudej This was fixed in that PR right?

@pranavkm
Copy link
Contributor Author

It wasn't.

@Tratcher
Copy link
Member

Count, Keys, Values, ContainsKey

@Tratcher Tratcher added this to the 1.0.0-alpha3 milestone Jun 23, 2014
@Tratcher Tratcher self-assigned this Jun 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants