Skip to content

Add Enumerable.ToHashSet #14830

@GSPP

Description

@GSPP

We have Enumerable.To* methods for many common collections. HashSet is sorely missing. This feature should be cheap to implement and not be problematic in any way that I can see.

Evidence that this feature is sorely missing: https://www.google.com/webhp?complete=1&hl=en&gws_rd=cr,ssl&ei=#complete=1&hl=en&q=.net+tohashset People are writing this method over and over again.

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-System.Linqhelp wanted[up-for-grabs] Good issue for external contributors

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions