the snippet you have is usually used in designer classes. do you have your
own collectioneditor (uitypeeditor)?

Signature
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
> the snippet you have is usually used in designer classes. do you have
> your
> own collectioneditor (uitypeeditor)?
No, it's just using the default VS.NET CollectionEditor. It's a really
strange situation, because all collection properties are marked with the
DesignerSerializationVisibility(Content), and I know that the types within
them can be serialized to code via my custom TypeConverter. VS just won't
see any changes when I add to the collection, so I assumed this was the
issue.
Is there some way I can inherit from the default CollectionEditor and force
VS to use that as the designer for my collection class, and instruct it to
force an update of the code if something's added/removed?
Thanks,
Alex Clark
>> Hi All,
>>
[quoted text clipped - 26 lines]
>> Many thanks,
>> Alex
Nice Chap - 22 Mar 2005 12:23 GMT
VS.Net does not know the Add method of your collection ( it won't assume the
name !). So it can not serialise the contents of the colletion. You will
have to write your own collection serializer and add code to it.
Public Class UIWinCollectionSerializer
Inherits System.ComponentModel.Design.Serialization.CodeDomSerializer
etc etc...
joeycalisay - 28 Mar 2005 03:59 GMT
The CollectionCodeDomSerializer used by VS looks for the Add and AddRange
methods

Signature
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
> VS.Net does not know the Add method of your collection ( it won't assume the
> name !). So it can not serialise the contents of the colletion. You will
[quoted text clipped - 5 lines]
>
> etc etc...