Click here to Skip to main content
15,885,141 members
Articles / Programming Languages / C#

Strongly typed collections

Rate me:
Please Sign up or sign in to vote.
2.28/5 (7 votes)
30 May 2004CPOL 36.9K   329   12   3
A simple tool to generate typed collections.

Content

I'm just a beginner in programming stuff. Every time I need a specific collection, I have to write an entire class (it is always the same), and I'm a little tired of that, so I wrote a Visual Studio Add-In that does the work for me.

Usage

My add-in is very simple, you select a project, then go to Tools/TypedCollection.

It displays a window that prompts you for the data type and the collection name.

Press OK, and you are done. It will create a new class with your collection which inherits from CollectionBase which guarantees you have all its functionality, plus the advantages of being strongly typed.

How to build it

Just download the source files, unzip it, and open the TypedCollection solution. Then build both projects (TypedCollection and TypedCollectionSetup). Once you've done that, run setup.exe from bin directory.

Happy programming.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Cuba Cuba
I'm a advance computer technology students.

Comments and Discussions

 
QuestionDoes this work for Framework 3.5 SP1 VS.NET? Pin
Mark Kamoski18-Feb-09 5:01
Mark Kamoski18-Feb-09 5:01 
GeneralMore... Pin
Erlend Robaye10-Jan-06 20:29
Erlend Robaye10-Jan-06 20:29 
GeneralRe: Now if you could only do it for C++, Pin
Colin Angus Mackay1-Jun-04 10:44
Colin Angus Mackay1-Jun-04 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.