The CollectionCodeDomSerializer uses
reflection to serialize a serializeable collection properties to locate
methodinfo with “Add” and “AddRange” as names.
We have a
coding convention here to use prefix to clearly distinguish methods
from properties, and others. Method like these should have been
exempted from the said convention. Now, I’m taking my time fixing the
generated code to its past working state since the Windows Forms
Designer removed code gens for the said collections when he was not
able to find the said methods the moment he regenerated them
<sigh>.
If you're saying that the said class still has
"Add" and "AddRange" which is defined in the CollectionBase class, good
point. However, they are defined as EII (Explicit Interface
Implementation) and therefore declared as private, methods is
inaccessible for code-generated property settings.
Posted
Apr 14 2005, 03:41 PM
by
jokiz