I have a property where ShouldSerialize is not called?
If I use a type converter do these methods still work?
Any ideas would be great.
P.S. I want to serialize progmaticly so the default attribute will not work.
Thanks,
Schneider
<TypeConverter(GetType(ExpandableObjectConverter))> _
Public Class ImageAssociatedHelper
Implements IImageAssociatedStorage
Implements ICloneable
Public Property Image() As Image Implements
IImageAssociatedStorage.Image
Public Function ShouldSerializeImage() As Boolean Implements
AbstractInterfaces.IImageAssociatedStorage.ShouldSerializeImage
schneider - 16 Feb 2007 06:40 GMT
I solved the problem.
The property "Image" still had a "DefaultValue" attribute on it, which i
guess prevents the should serialize functionality from working, so I removed
it and it worked fine.
Schneider
>I have a property where ShouldSerialize is not called?
>
[quoted text clipped - 22 lines]
> Public Function ShouldSerializeImage() As Boolean Implements
> AbstractInterfaces.IImageAssociatedStorage.ShouldSerializeImage