SerializationGrooper 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.
DataContractSpecifies 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.
DataMemberWhen 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).