By tag: Collections
0
kicks
Generic(Collection) Usage in the .NET Framework
Generics provide a way for developers to define subroutines, functions, fields, properties as well as classes, structures, interfaces and even delegates in such a way that the parameters are not of any particular type. In a sense the constructs are defined in a generic approach.
The .NET Framewo...
0
kicks
Read-Only Collections in .NET
Complete implementations of a ReadOnlyDictionary<TKey, TValue> and ReadOnlySet<T> class in C# 3.0, in the style of the ReadOnlyCollection<T> class in the BCL.
0
kicks
IDictionary's missing methods
A set of extension methods to make any IDictionary-implementing collections easier to work with: TryGetValue, ContainsKey, and RemoveAll.
0
kicks
Implementing the Each method in C# collections.
Ruby has it, Prototype add it to JavaScript array. I find myself using it a lot, why not to implement it in C#?
Take a look at a quiet take on this one.
0
kicks
The Specialised Collections
The forty-third part of the C# Fundamentals tutorial describes the specialised (or specialized) collection classes. The .NET framework provides five different types of specialised collection, each being optimised for a particular structure or data type.
0
kicks
How-To: "Cast" between List<T>'s
If you've ever tried to cast been list generics, you know that you can't.
0
kicks
Old story but a good resource
From the same people who brought you Process Explorer comes Power Collections, a .NET assembly containing many standard generic collections not implemented in the framework. These collections also have many more useful methods (NthLargest I likes) you also won't find in the standard collections. A...
0
kicks
Creating a Generic Collection Class with Sorting Support in .NET 2.0
One of the coolest new features in .NET 2.0 is the introduction of Generics. For those of you that have been creating tons of strongly typed collections for your business objects I'm sure you had the same reaction I did when you heard about them. "Sweet!! Now I can stop generating and tweaking ...
0
kicks
Replacing Recursion With a Stack
This post demonstrates how a recursive method can be replaced with a non-recursive method by using a Stack collection.
0
kicks
What is a collection?
Mads Torgersen has an intriguing new post on LINQ, collections and collection initializers. Mads is the language PM in the C# group at Microsoft and has a deep understanding of this subject.
0
kicks
Managing collections with functors
An easy way of working with collections using the new features of C# 2.0.
0
kicks
.NET - The joy of generics
"Generics have got to be one of my favorite additions to the 2.0 Framework." - What they are & how to use them
0
kicks
Understanding the different generic collections in .NET
Learn when to use List<T>, BindingList<T> and Collection<T>