Book a Demo

Author Topic: DualCollection vs Collection  (Read 3561 times)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
DualCollection vs Collection
« on: January 27, 2009, 10:43:08 pm »
Simple question, what is the difference between EA.IDualCollection and EA.Collection?

When would you use one over the other?

My Add-In uses EA.IDualCollection at the momment and works fine, but I would like to see a formal definition.

I believe there is also EA.IDualElement and EA.Element, so on a more generic level what is the difference between EA.IDualx and EA.x?

Cheers
Models are great!
Correct models are even greater!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: DualCollection vs Collection
« Reply #1 on: January 27, 2009, 11:19:23 pm »
Part of the 'bits and bytes' answer lies in the COM origin of EA. Apart from that, just think of these as an interface and a class (which of course they are) and treat each accordingly.

PS: Oh yeah. If you use languages that are not namespace-aware, the interfaces might help avoid name duplication.
« Last Edit: January 27, 2009, 11:20:30 pm by Midnight »
No, you can't have it!