all groups > dotnet windows forms designtime > february 2007 >
You're in the

dotnet windows forms designtime

group:

ShouldSerialize not called?


ShouldSerialize not called? schneider
2/5/2007 2:29:38 AM
dotnet windows forms designtime:
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



Re: ShouldSerialize not called? schneider
2/16/2007 12:40:24 AM
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

[quoted text, click to view]

AddThis Social Bookmark Button