Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Update regular expressions collections to implement IReadOnlyList<T> #277

Closed
wants to merge 1 commit into from

Conversation

sharwell
Copy link
Member

Fixes #271

I believe this is the least intrusive path to implementing the requested functionality.

I considered the following items but decided to not include them with this pull request.

  • GroupEnumerator is internal, so it might be possible to change the type of GroupEnumerator.Capture from Capture to Group. This would make the explicit cast in the generic Current property unnecessary.
  • I did not update CaptureCollection to implement IReadOnlyDictionary<string, Capture>, primarily because it's a larger change with the addition of the Keys and Values properties (even if they are explicitly implemented). This should probably be reviewed independently from a straightforward implementation of IReadOnlyList<T>.

…(fixes #271)

* CaptureCollection implements IReadOnlyList<Capture>
* GroupCollection implements IReadOnlyList<Group>
* MatchCollection implements IReadOnlyList<Match>
@davkean davkean added area-System.Text.RegularExpressions api-needs-work API needs work before it is approved, it is NOT ready for implementation labels Dec 18, 2014
@davkean
Copy link
Member

davkean commented Dec 18, 2014

Just want to set clear expectations here - we're not planning on taking any APIs additions until the middle of January; we're waiting to finalize our branching structure, and the API review process (a draft of which should be published before Christmas).

@sharwell
Copy link
Member Author

Thanks for the heads-up. I'm looking forward to watching and learning more about the processes here regardless of the final outcome. 😄

@davkean
Copy link
Member

davkean commented Dec 19, 2014

@terrajobst has just posted our API Review process proposal, feel free to comment over here: https://github.com/dotnet/corefx/issues/294.

@sharwell
Copy link
Member Author

Closing this per my notes in #271.

@sharwell sharwell closed this Dec 19, 2014
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
Olafski pushed a commit to Olafski/corefx that referenced this pull request Jun 15, 2017
* Add Dockerfile
- Added Dockerfile for app
- Made the app a bit shorter
- Improved app with string interpolation usage

* Add trailing CR

* Simplify string joining
akoeplinger pushed a commit to akoeplinger/corefx that referenced this pull request May 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api-needs-work API needs work before it is approved, it is NOT ready for implementation area-System.Text.RegularExpressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regex collections should implement generic collection interfaces
3 participants