The ChuckThe Chuck Posts: 80 admin


Grooper utilizes serialization to efficiently store the properties and settings of Grooper objects.  You can apply the DataContract attribute and DataMember attributes to explicitly control or customize the serialization of types and members.  The example below demonstrates marking up a WebServiceProperty class and its member variables for serialization.

For more information on Data Contract and Data Members, see How to: Create a Basic Data Contract for a Class or Structure.


Specifies that the type defines or implements a data contract and is serializable by a serializer.  In the example below, the <DataContract> attribute indicates to Grooper that a WebServiceProperties object is being serialized.  


When applied to the member of a type, specifies that the member is part of a data contract and is serializable.  In the example below, the <DataMember> attribute indicates that a value should be serialized for each of the specified members (HostName, PortNo, UrlPath, HttpsEnabled, and EnableDebugging).

See Also:

Object Markup
Sign In or Register to comment.