A
Aidy
In .net 1.1 we'd have a whole bunch of collections for each of our classes.
So we'd have "ProductCollection", "UserCollection" etc etc, each a
strongly-typed collection for that user.
I know in 2.0 we can use generics, but I'm looking for opinions on using
Generics over the method mentioned above. I know it'll cut down on the
coding and number of classes, but is;
Collection<Product> products = ....
Collection<User> users = ....
better than
ProductCollection products = ....
UserCollection users = ....
Just wondering what people's thoughts are, I'm conscious that I might just
be seeking the known comfort of how things were done in 1.1.
So we'd have "ProductCollection", "UserCollection" etc etc, each a
strongly-typed collection for that user.
I know in 2.0 we can use generics, but I'm looking for opinions on using
Generics over the method mentioned above. I know it'll cut down on the
coding and number of classes, but is;
Collection<Product> products = ....
Collection<User> users = ....
better than
ProductCollection products = ....
UserCollection users = ....
Just wondering what people's thoughts are, I'm conscious that I might just
be seeking the known comfort of how things were done in 1.1.