Chapter 30. Adapting COM Collections
Age and treachery will overcome youth and skill.
Stoke me a clipper, I’ll be back for Christmas!
|--Arnold J. Rimmer, Red Dwarf|
The COM collection model represents collections with a loosely defined interface containing some or all of the following members: the methods
Remove() and the properties
Item. (When expressed in C/C++, COM properties are prefixed with
get_Count().) The one mandatory member is
_NewEnum, which returns an enumerator in the form of a COM enumerator interface (Section 28.3). Just for grins,
_NewEnum may be either a method or a property. By convention COM collections provide enumerators with the
IEnumVARIANT interface ...