D
Doug
Hi,
I want to create a collection of objects that will be used as a
property of another object. So for example if I had a Customer object,
I would like to have an AddressCollection property within that object.
That AddressCollection property would contain one to many Addresses for
each Customer and the Address object would have properties such as
Street, City, State, etc.
I am struggling with what interface to use to do this. I've looked
into IEnumerable, IEnumerator, IList, ICollection etc but they all have
either more methods or less than what I need. I need the ability to
add to this collection and to find a certain one within it.
Any suggestions?
I want to create a collection of objects that will be used as a
property of another object. So for example if I had a Customer object,
I would like to have an AddressCollection property within that object.
That AddressCollection property would contain one to many Addresses for
each Customer and the Address object would have properties such as
Street, City, State, etc.
I am struggling with what interface to use to do this. I've looked
into IEnumerable, IEnumerator, IList, ICollection etc but they all have
either more methods or less than what I need. I need the ability to
add to this collection and to find a certain one within it.
Any suggestions?