System.Runtime.Serialization.Primitives When applied to a collection type, enables custom specification of the collection item elements. This attribute can be applied only to types that are recognized by the as valid, serializable collections. Initializes a new instance of the class. Gets or sets a value that indicates whether to preserve object reference data. true to keep object reference data; otherwise, false. The default is false. Gets or sets a custom name for a collection element. The name to apply to collection elements. Gets or sets the custom name for a dictionary key name. The name to use instead of the default dictionary key name. Gets or sets the data contract name for the collection type. The data contract name for the collection type. Gets or sets the namespace for the data contract. The namespace of the data contract. Gets or sets the custom name for a dictionary value name. The name to use instead of the default dictionary value name. Specifies the CLR namespace and XML namespace of the data contract. Initializes a new instance of the class using the supplied namespace. The namespace of the contract. Gets or sets the CLR namespace of the data contract type. The CLR-legal namespace of a type. Gets the namespace of the data contract members. The namespace of the data contract members. Specifies that the type defines or implements a data contract and is serializable by a serializer, such as the . To make their type serializable, type authors must define a data contract for their type. Initializes a new instance of the class. Gets or sets a value that indicates whether to preserve object reference data. true to keep object reference data using standard XML; otherwise, false. The default is false. Gets or sets the name of the data contract for the type. The local name of a data contract. The default is the name of the class that the attribute is applied to. Gets or sets the namespace for the data contract for the type. The namespace of the contract. When applied to the member of a type, specifies that the member is part of a data contract and is serializable by the . Initializes a new instance of the class. Gets or sets a value that specifies whether to serialize the default value for a field or property being serialized. true if the default value for a member should be generated in the serialization stream; otherwise, false. The default is true. Gets or sets a value that instructs the serialization engine that the member must be present when reading or deserializing. true, if the member is required; otherwise, false. the member is not present. Gets or sets a data member name. The name of the data member. The default is the name of the target that the attribute is applied to. Gets or sets the order of serialization and deserialization of a member. The numeric order of serialization or deserialization. Specifies that the field is an enumeration member and should be serialized. Initializes a new instance of the class. Gets or sets the value associated with the enumeration member the attribute is applied to. The value associated with the enumeration member. When applied to the member of a type, specifies that the member is not part of a data contract and is not serialized. Initializes a new instance of the class. The exception that is thrown when the or encounters an invalid data contract during serialization and deserialization. Initializes a new instance of the class. Initializes a new instance of the class with the specified error message. A description of the error. Initializes a new instance of the class with the specified error message and inner exception. A description of the error. The original . Specifies types that should be recognized by the when serializing or deserializing a given type. Initializes a new instance of the class with the name of a method that returns an of known types. The name of the method that returns an of types used when serializing or deserializing data. Initializes a new instance of the class with the specified type. The that is included as a known type when serializing or deserializing data. Gets the name of a method that will return a list of types that should be recognized during serialization or deserialization. A that contains the name of the method on the type defined by the class. Gets the type that should be recognized during serialization or deserialization by the . The that is used during serialization or deserialization. When applied to a method, specifies that the method is called immediately after deserialization of an object in an object graph. The order of deserialization relative to other objects in the graph is non-deterministic. Initializes a new instance of the class. When applied to a method, specifies that the method is called during deserialization of an object in an object graph. The order of deserialization relative to other objects in the graph is non-deterministic. Initializes a new instance of the class. When applied to a method, specifies that the method is called after serialization of an object in an object graph. The order of serialization relative to other objects in the graph is non-deterministic. Initializes a new instance of the class. When applied to a method, specifies that the method is during serialization of an object in an object graph. The order of serialization relative to other objects in the graph is non-deterministic. Initializes a new instance of the class. The exception thrown when an error occurs during serialization or deserialization. Initializes a new instance of the class with default properties. Initializes a new instance of the class with a specified message. Indicates the reason why the exception occurred. Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. The error message that explains the reason for the exception. The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. Determines whether two instances contain the same values. true if the specified object is an instance of and equals the value of the current instance; otherwise, false. An object to compare with the current instance. Returns a hash code of this object. The value that contains the source or destination of the serialization for this .