Collection Extensions NuGet Package

Why is it that the List is so widely used, even when there is absolutly no need for the features of a List? I think one of the most important reasons is it beeing so easily available.

You could simply use the extension method .ToList() on any IEnumerable.

To help out in this matter, and hopefully help you use other (more suitable) generic collection types, I've created this package. It contains extension methods for IEnumerable to convert it to:

Basic classes:
- Stack
- Queue
- HashSet

Interfaces:
- ICollection
- IEnumerable
- ICollection
- IList
- ISet
- IDictionary

Concurrent classes:
- ConcurrentBag
- ConcurrentQueue
- ConcurrentStack
- ConcurrentDictionary.




Got any Collection Extensions Question?





Info

Version: 1.0.0
Author(s): Richard Jansson
Last Update: Wednesday, October 1, 2014
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/RJ.CollectionExtensions


Install
Install-Package RJ.CollectionExtensions
dotnet add package RJ.CollectionExtensions
paket add RJ.CollectionExtensions
RJ.CollectionExtensions Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

3704