tags:

views:

117

answers:

2

Hi all, I'm new in programming.

In VB2005, I have some object files, like a.vb, b.vb, c.vb.. each of them has different properties.

Then I have the collection files, for example: as.vb is the collection of a, bs.vb is the collection of b... each has mostly the same content, like add, item, count...

So now I would like to know, is that if it's possible to simplify these redundant collections, like integrating all into one single collection file but can be used by all the object files.

Thank u very much

+5  A: 

You can achieve this using Generics in .NET 2.0 onwards.

This post describes the various generic collections available in .NET 2.0

Mitch Wheat
+2  A: 
Joel Coehoorn