Also, if your property is exposing a value type private variable in your
class, then use an initializer to set that variable to the default value. I
have had problems with the DefaultValueAttribute when I did not correctly
initialize the underlying variable. (Don't remember exactly what - I haven't
done that recently :-))
-Rachel
"Relaxin" <me@yourhouse.com> wrote in message
news:ur**************@TK2MSFTNGP14.phx.gbl...
Use the [DefaultValueAttribute] or use the ShouldSerialize<propertyname>
and Reset<propertyname>.
"Job Lot" <Jo****@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com... how can i assign a default value for a custom property?