Collections code snippets (30)

How to compare strings in collection with ignoring the case

Published: 6. July 2014 | Updated: 6. July 2014
Categories: Linq
Tags: C# Collections Text

How to convert IEnumerable to IQueryable

Published: 14. February 2012 | Updated: 14. February 2012
Categories: Linq
Tags: C# Collections Linq

How to create readonly collection

Published: 14. February 2012 | Updated: 14. February 2012
Categories: Collections
Tags: C# Collections Linq

How to dynamically add generic condition to IQueryable

Published: 14. February 2012 | Updated: 14. February 2012
Categories: Linq
Tags: C# Collections Lambda Linq

How to use collection initializers

Published: 25. November 2011 | Updated: 25. November 2011
Categories: Collections
Tags: C# Collections

How to create range of numbers

Published: 25. November 2011 | Updated: 25. November 2011
Categories: Collections Math
Tags: C# Collections Math

How to sort objects using SortedList

Published: 13. December 2008 | Updated: 19. November 2011
Categories: Collections
Tags: C# Collections

How to make paging in collections

Published: 11. November 2011 | Updated: 11. November 2011
Categories: Collections
Tags: C# Collections Linq

How to sort ObservableCollection

Published: 1. November 2011 | Updated: 1. November 2011
Categories: Linq
Tags: C# Collections

How to update dictionary value

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Collections
Tags: Basics C# Collections

How to iterate dictionary

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Collections
Tags: Basics C# Collections

How to get key from dictionary by value

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Collections
Tags: C# Collections Linq

How to get value in dictionary by key

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Collections
Tags: Basics C# Collections

How to get values from dictionary

Published: 27. October 2011 | Updated: 27. October 2011
Categories: Collections
Tags: Basics C# Collections

How to get keys from dictionary

Published: 9. October 2011 | Updated: 27. October 2011
Categories: Linq
Tags: Basics C# Collections

How to implement generic IEnumerable<>

Published: 26. October 2011 | Updated: 26. October 2011
Categories: Generics Implementations
Tags: C# Collections Design Patterns Generics

How to implement non-generic IEnumerable

Published: 26. October 2011 | Updated: 26. October 2011
Categories: Implementations
Tags: C# Collections Design Patterns

How to use yield return keyword

Published: 14. October 2011 | Updated: 14. October 2011
Categories: Collections
Tags: C# Collections

How to sum numbers from collection

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Linq Math
Tags: C# Collections Linq Math

How to join two lists

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Collections
Tags: C# Collections

How to use Stack collection

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Collections
Tags: C# Collections

How to use Queue collection

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Collections
Tags: C# Collections

How to use SortedDictionary

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Collections
Tags: C# Collections

How to use generic SortedList

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Collections
Tags: C# Collections

How to break out of loop

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Collections
Tags: C# Collections

How to use IEnumerator

Published: 9. October 2011 | Updated: 9. October 2011
Categories: Collections
Tags: C# Collections

How to sort collection

Published: 30. September 2011 | Updated: 30. September 2011
Categories: Collections
Tags: C# Collections

How to reverse collection

Published: 30. September 2011 | Updated: 30. September 2011
Categories: Collections
Tags: C# Collections

How to create comparer for collection sorting

Published: 8. January 2009 | Updated: 8. January 2009
Categories: Collections Implementations
Tags: C# Collections Design Patterns

How to iterate List efficiently

Published: 13. December 2008 | Updated: 13. December 2008
Categories: Collections
Tags: C# Collections Delegates