2 packages tagged with “ConcurrentStack”
Extensions to transform IEnumerable into other generic collection types, including async versions.
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