CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Brendan Tompkins [MVP]

Blog First. Ask Questions Later.

A Collection of Collections Stuff

I'm on a quest to find the “Perfect“ collection template -  my goal is to create a ReSharper LiveTemplate once I do, so I can easily add them to my projects.  Of course, perfect is relative to the task at hand, but I want a good, simple all purpose collection template that I can use for the time being, until Generics are a reality.  

As I've been poking around, I've come across some good links. If you're new to collections, these may help get you oriented:

Overviews

Strongly Typed Collection
Getting to know the .NET collections
CollectionBase Class (.NET Framework)

Code

Creating Strongly Typed Custom Collections in C#
Take advantage of strongly typed collection classes in .NET (VB)
CodeGuru: Implementing Strongly Typed Collection (VB)

Tools

Strongly Typed Collection Wizard  - A Web-Based Tool for generating Collections
Strongly Typed Collection Builder Addin for VS.NET 2003
CodeSmith Support Forum > File Share > Collection Templates - Entire forum dedicated to collections  with CodeSmith

Related Topics

A generic sorter for strongly-typed collections
Sort and Filter Strongly-Typed Collection Classes



Comments

Eddie Garmon said:

You might want to check out the templates that I released this morning. Included is a Typed Collection that has support for the .Net XmlSerializer, and a Typed Hashed Collection that also has serialization support.

Eddie

http://weblogs.asp.net/egarmon/admin/Referrers.aspx?EntryID=368926
# February 8, 2005 9:45 AM

Brendan Tompkins said:

Thanks, Eddie. Installing now. Here's the right link, btw.

http://weblogs.asp.net/egarmon/archive/2005/02/08/368926.aspx
# February 8, 2005 10:21 AM

Sahil Malik said:

I can speak for .NET 2.0.

It'd be ultra nice to have a Hashtable<K,T> .. atleast in Beta 1 it ain't there.
# February 8, 2005 10:22 AM

Brendan Tompkins said:

K == Key? That'd be cool.
# February 8, 2005 10:26 AM

Raymond Lewallen said:

Here's another link to a "set", a collection without duplicates, with source code. http://www.codeproject.com/csharp/sets.asp
# February 8, 2005 10:33 AM

Simon Barber said:

Hey Eddie,

Downloaded your templates earlier, very handy.
# February 8, 2005 11:10 AM

Sean Malloy said:

Sahil,

Hashtable<K,T> = System.Collections.Generic.Dictionary<K,T>?
# February 8, 2005 5:04 PM

Sahil Malik said:

Dictionary != Hashtable.
# February 8, 2005 10:51 PM

Le weekly DanWatts said:

# March 30, 2005 6:01 AM

Kjell-Åke Andersson said:

I created a wizard for Visual Studio .NET 2003 (C#) that allows you to create a custom typed collection.

http://www.geekproject.com/tools.aspx#9
# February 16, 2006 2:52 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Brendan Tompkins

Brendan has been programming with .NET since the first public beta and is owner and operator of Port Technology Services, a consultancy company providing .NET application development services to the Maritime industry. In July, 2007, he was awarded the Microsoft MVP award for ASP.NET. He's also a proud co-founder of failed .COM startup Intrinsigo, and has had a hand in the failure of numerous other businesses. He currently runs CodeBetter.Com and Devlicio.us, and lives in Norfolk, Virgina with his wife Tiara and son Ian.

View Brendan's profile on LinkedIn

Check out Devlicio.us!

Our Sponsors

Proudly Partnered With


This Blog

Syndication

News

MVP
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.