.NET PropertyDescriptor..::.ShouldSerializeValue Method

Whilst on the topic of serialization it’s probably handy to mention this little tip.  The below example uses a ShouldSerialize property descriptor to tell the serializer to only serialize a string array if that string array is greater than zero.  http://msdn.microsoft.com/en-us/library/system.componentmodel.propertydescriptor.shouldserializevalue.aspx

This entry was posted in .NET. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s