How to expose multi-element field in base class to derived classes

Posted by Brian Triplett on Stack Overflow See other posts from Stack Overflow or by Brian Triplett
Published on 2010-03-12T15:59:26Z Indexed on 2010/03/15 19:29 UTC
Read the original article Hit count: 187

Filed under:
|
|

I have a base class that declares a grouping of objects. That grouping can be an array, List, Collection, that's up to me.

The derived classes of this base class are the ones that actually set the values of this multi-element field. What is the best way to expose this field to the derived classes?

© Stack Overflow or respective owner

Related posts about c#3.0

Related posts about .net-3.5