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)
Dependencies
Tags
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.