Click here to Skip to main content
15,891,136 members
Everything / Collections

Collections

collections

Great Reads

by honey the codewitch
Implementing full list support over custom data structures in .NET
by Sander Rossel
Using Venn diagrams to visualize sets.
by honey the codewitch
Easily implement efficient backtracking capabilities over any enumeration
by Rene Bustos
WCF WebService IN VB.NET Response JSON

Latest Articles

by Gerardo Recinto
In-memory B-Tree sorted dictionary
by Bohdan Stupak
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
by Dev Leader
This article is follow up content to previous articles I've written about iterators and collections, but the benchmark results were NOT what I expected!
by Pavel Bashkardin
Represents a C# generic implementation of the NameValueCollection

All Articles

Sort by Title

Collections 

19 Jun 2014 by Maciej Los
If you want to know the way you can serialize and deserialize custom class collection, this tip is for you.
6 Feb 2020 by honey the codewitch
A circular buffer implementing IList
20 Nov 2019 by honey the codewitch
A fully generic ordered dictionary class in C#
18 Aug 2010 by B. Verboven
Convert a generic list of (recursive) objects into a simple hierarchical TreeList
18 Mar 2012 by B. Verboven
This is an alternative for "A simple generic TreeList".
11 Nov 2015 by Yuriy Magurdumov
Simple generic data structure to maintain hierarchical objects
12 Aug 2023 by Bohdan Stupak
Batching is a nice technique that allows you to handle big amounts of data gracefully. Directory.EnumerateFiles is the API that allows you to organize batch processing for the directory with a large number of files.
13 Sep 2019 by honey the codewitch
A B-tree, an AVL tree, and a Splay tree in C#
12 Apr 2011 by CalicoSkies
How to use istream_iterator and the copy algorithm to populate an STL collection from a text file with very little code
6 May 2010 by Gordon Kushner
If you try to enumerate through a Dictionary's key collection and attempt to change the values as in the code below, Dictionary _items = new Dictionary();...int i = 0;//Attempt to set the values for this Dictionary item.foreach (string key in...
12 Jun 2011 by nit_singh
This is an example to Convert from a datatable to a specific type of collection using Generic
13 Aug 2011 by Vano Maisuradze
Very nice!I've modified ToCollection(this DataTable dt) extension function, so if DataTable column names and class property names are different, then you can use this alternative:public static List ToCollection(this DataTable table, Dictionary dic){ List lst = new...
16 Aug 2011 by Damian Flynn
Here's a couple of gems...From IList to DataTable.From DataTable to array of T.// DataTable: from IListpublic static DataTable ToDataTable(this IList iList){ DataTable dataTable = new DataTable(); PropertyDescriptorCollection propertyDescriptorCollection = ...
24 Feb 2020 by honey the codewitch
A relatively safe, simple, yet high performance technique for using lists as dictionary keys.
5 May 2020 by honey the codewitch
This tip shows you a robust way to get the type of items a collection can hold. It works with non-generic collections too.
5 Dec 2019 by honey the codewitch
Fills a gap in Microsoft's Queue offering with an alternative allowing efficient indexed access
6 Jul 2018 by vudangngoc
Travelling over Java collections is just a piece of cake, but when the size of the collections increases you have to choose wisely
23 Dec 2019 by honey the codewitch
Easily implement efficient backtracking capabilities over any enumeration
22 May 2010 by #realJSOP
In WPF/Silverlight, you might want to bind to a dictionary. Here's a couple of websites I found.
4 Jun 2011 by Nick Alexeev
Returning read-only collection
31 May 2011 by Mohammad Mir mostafa
Another good idea is to return the list as enumerable using:return m_privateCollection.AsEnumerable();Now what are the differences?AsReadOnly() creates a completely new collection of list. Depending on the count of items and where the resource is, this may take a long...
23 Nov 2021 by honey the codewitch
Easily compare collections for equality
9 Feb 2020 by honey the codewitch
Using IEqualityComparer to allow collections to be keys in dictionaries and hashsets
6 Dec 2015 by Gregory Morse
WRL Collection library ported to native C++