grouping together user defined data types and collections of those types

  • Thread starter Thread starter Andy B.
  • Start date Start date
A

Andy B.

I am creating some data types for my solution. I am putting all of the data
types I create in a seprate dll project. I will have objects eventually that
will contain collections of these data types. Where do I put the collection
definitions for these data types? With the data types themselves or with the
objects that will use them?
 
Andy,

You are writting here often about objects. In my idea you probably mean
Classes (Types).

Objects are nothing else then instanced types. In fact is a shared class by
instance no type in VB (despite that the base class of Net is named Object)

I think it is better to avoid the use of the name object, because at least
for me it is confusing.

Cor
 
Andy said:
I am creating some data types for my solution. I am putting all of the data
types I create in a seprate dll project. I will have objects eventually that
will contain collections of these data types. Where do I put the collection
definitions for these data types? With the data types themselves or with the
objects that will use them?

Put the Collections with the Classes they contain.

I would say it's highly unlikely that you would want to use one without
the other, so you might as well get them both through a single reference
(to your Dll).

HTH,
Phill W.
 
Back
Top