N
Nice Chap
Aggregation in COM was defined as 'Exposing an interface of an inner object
by the outer object as though it were an interface of the outer object'. Is
this type of aggregation possible in c#?
For example...
Class COuter - 'Contains' an instance variable of type CInner
Class CInner - Implements IList
Can COuter be made to look like its implementing IList?
Note: Implementing IList explicitly in COuter by calling corresponding
methods on CInner is not what I am after. In some articles on the web such a
practice is desribed as Aggregation when it is indeed 'Delegation'.
by the outer object as though it were an interface of the outer object'. Is
this type of aggregation possible in c#?
For example...
Class COuter - 'Contains' an instance variable of type CInner
Class CInner - Implements IList
Can COuter be made to look like its implementing IList?
Note: Implementing IList explicitly in COuter by calling corresponding
methods on CInner is not what I am after. In some articles on the web such a
practice is desribed as Aggregation when it is indeed 'Delegation'.