A
Andrew Hayes
Maybe I'm missing a code snippet or something, but there doesn't seem to be a
way in VS2005 to create a class that is a collection of another class.
Something that was very easy to do in the old VB6 Class Builder.
I've tried using the Class Designer but while it handles many of the
refactoring needed for properties and methods, it doesn't have the templates
needed for large class code creation.
At the moment I'm manually coding the collection wrapper for each of the
classes I'm working with, although I have shortened my time by copying and
pasting a completed collection class and just doing a search and replace to
change the name.
Should I be using a class inherted from CollectionBase to store the
collection of my other class, or should I just use the base classes?
way in VS2005 to create a class that is a collection of another class.
Something that was very easy to do in the old VB6 Class Builder.
I've tried using the Class Designer but while it handles many of the
refactoring needed for properties and methods, it doesn't have the templates
needed for large class code creation.
At the moment I'm manually coding the collection wrapper for each of the
classes I'm working with, although I have shortened my time by copying and
pasting a completed collection class and just doing a search and replace to
change the name.
Should I be using a class inherted from CollectionBase to store the
collection of my other class, or should I just use the base classes?