Click here to Skip to main content
12,064,291 members (45,312 online)
Click here to Skip to main content
Add your own
alternative version


12 bookmarked

Strongly typed collections

, 30 May 2004 CPOL
Rate this:
Please Sign up or sign in to vote.
A simple tool to generate typed collections.


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.


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.


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


About the Author

Yanier Castellanos
Web Developer
Cuba Cuba
I'm a advance computer technology students.

You may also be interested in...

Comments and Discussions

GeneralMore... Pin
Erlend Robaye10-Jan-06 21:29
memberErlend Robaye10-Jan-06 21:29 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160204.4 | Last Updated 31 May 2004
Article Copyright 2004 by Yanier Castellanos
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid