You should use the ShouldSerialize<propertyname> method:
private bool ShouldSerializeMyProperty()
{
if (test) return true; //serialize it...
else return false; // don't serialize it...
}

Signature
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
> Hello
>
[quoted text clipped - 18 lines]
>
> Thanks a lot for your help
azerty - 07 Mar 2005 09:44 GMT
perfect !!
thanks a lot !
> You should use the ShouldSerialize<propertyname> method:
>
[quoted text clipped - 27 lines]
> >
> > Thanks a lot for your help
azerty - 07 Mar 2005 12:50 GMT
Just a question :
My Property is ExtenderProperty
Do you think I must write this on extender ...
private bool ShouldSerializeMyProperty(Control ctrl)
{
....
}
> You should use the ShouldSerialize<propertyname> method:
>
[quoted text clipped - 27 lines]
> >
> > Thanks a lot for your help
joeycalisay - 08 Mar 2005 00:32 GMT
Yes.
Try to look for the "Getting to know IExtenderProvider" article in
codeproject, good resource.

Signature
Joey Calisay
http://spaces.msn.com/members/joeycalisay/
> Just a question :
>
[quoted text clipped - 38 lines]
> > >
> > > Thanks a lot for your help