Welcome to WindowsClient.net | Sign in | Join

Zuker On Foundations

The realm of .NET (WPF, WCF and all around)

WCF POCO support in .NET v3.5 SP1

POCO - plain old c# objects.

In .NET v3.5 SP1, DataContractSerializer supports classes which aren't tagged with any serialization-related attributes. (DataContract, DataMember, Serializable)
Plus, it doesn't require the class to implement ISerializable or IXmlSerializable.

Very sweet, but do know its behavior:

These are the common grounds:

1) It will include only the fields/properties with a 'public' modifier which have both getter and a setter

2) The class must have a default parameter-less constructor

Certainly a nice addition!

Posted: May 21 2008, 04:42 PM by zuker | with no comments
Filed under:

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

Page view counter