C# Class Thinktecture.ServiceModel.Description.InheritableDataContractSerializer

Inheritance: System.Runtime.Serialization.XmlObjectSerializer
Mostra file Open project: ChristianWeyer/Thinktecture.ServiceModel

Public Methods

Method Description
InheritableDataContractSerializer ( Type type ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, IEnumerable knownTypes ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, IEnumerable knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, IDataContractSurrogate dataContractSurrogate ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, IEnumerable knownTypes ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, IEnumerable knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, IDataContractSurrogate dataContractSurrogate ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, string rootName, string rootNamespace ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, string rootName, string rootNamespace, IEnumerable knownTypes ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

InheritableDataContractSerializer ( Type type, string rootName, string rootNamespace, IEnumerable knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, IDataContractSurrogate dataContractSurrogate ) : System

Initializes a new instance of the InheritableDataContractSerializer class.

IsStartObject ( XmlDictionaryReader reader ) : bool

Gets a value that specifies whether the T:System.Xml.XmlDictionaryReader is positioned over an XML element that can be read.

IsStartObject ( XmlReader reader ) : bool

Gets a value that specifies whether the T:System.Xml.XmlReader is positioned over an XML element that can be read.

ReadObject ( Stream stream ) : object

Reads the XML stream or document with a T:System.IO.Stream and returns the deserialized object.

ReadObject ( XmlDictionaryReader reader ) : object

Reads the XML document or stream with an T:System.Xml.XmlDictionaryReader and returns the deserialized object.

ReadObject ( XmlDictionaryReader reader, bool verifyObjectName ) : object

Reads the XML stream or document with an T:System.Xml.XmlDictionaryReader and returns the deserialized object; it also enables you to specify whether the serializer can read the data before attempting to read it.

ReadObject ( XmlReader reader ) : object

Reads the XML document or stream with an T:System.Xml.XmlReader and returns the deserialized object.

ReadObject ( XmlReader reader, bool verifyObjectName ) : object

Reads the XML document or stream with an T:System.Xml.XmlReader and returns the deserialized object; it also enables you to specify whether the serializer can read the data before attempting to read it.

WriteEndObject ( XmlDictionaryWriter writer ) : void

Writes the end of the object data as a closing XML element to the XML document or stream with an T:System.Xml.XmlDictionaryWriter.

WriteEndObject ( XmlWriter writer ) : void

Writes the end of the object data as a closing XML element to the XML document or stream with an T:System.Xml.XmlWriter.

WriteObject ( Stream stream, object graph ) : void

Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified T:System.IO.Stream.

WriteObject ( XmlDictionaryWriter writer, object graph ) : void

Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified T:System.Xml.XmlDictionaryWriter.

WriteObject ( XmlWriter writer, object graph ) : void

Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified T:System.Xml.XmlWriter.

WriteObjectContent ( XmlDictionaryWriter writer, object graph ) : void

Writes only the content of the object to the XML document or stream using the specified T:System.Xml.XmlDictionaryWriter.

WriteObjectContent ( XmlWriter writer, object graph ) : void

Writes only the content of the object to the XML document or stream with the specified T:System.Xml.XmlWriter.

WriteStartObject ( XmlDictionaryWriter writer, object graph ) : void

Writes the start of the object's data as an opening XML element using the specified T:System.Xml.XmlDictionaryWriter.

WriteStartObject ( XmlWriter writer, object graph ) : void

Writes the start of the object's data as an opening XML element using the specified T:System.Xml.XmlWriter.

Method Details

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type ) : System
type System.Type The type.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, IEnumerable knownTypes ) : System
type System.Type The type.
knownTypes IEnumerable The known types.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, IEnumerable knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, IDataContractSurrogate dataContractSurrogate ) : System
type System.Type The type.
knownTypes IEnumerable The known types.
maxItemsInObjectGraph int The max items in object graph.
ignoreExtensionDataObject bool if set to true [ignore extension data object].
preserveObjectReferences bool if set to true [preserve object references].
dataContractSurrogate IDataContractSurrogate The data contract surrogate.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace ) : System
type System.Type The type.
rootName System.Xml.XmlDictionaryString Name of the root.
rootNamespace System.Xml.XmlDictionaryString The root namespace.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, IEnumerable knownTypes ) : System
type System.Type The type.
rootName System.Xml.XmlDictionaryString Name of the root.
rootNamespace System.Xml.XmlDictionaryString The root namespace.
knownTypes IEnumerable The known types.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, IEnumerable knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, IDataContractSurrogate dataContractSurrogate ) : System
type System.Type The type.
rootName System.Xml.XmlDictionaryString Name of the root.
rootNamespace System.Xml.XmlDictionaryString The root namespace.
knownTypes IEnumerable The known types.
maxItemsInObjectGraph int The max items in object graph.
ignoreExtensionDataObject bool if set to true [ignore extension data object].
preserveObjectReferences bool if set to true [preserve object references].
dataContractSurrogate IDataContractSurrogate The data contract surrogate.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, string rootName, string rootNamespace ) : System
type System.Type The type.
rootName string Name of the root.
rootNamespace string The root namespace.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, string rootName, string rootNamespace, IEnumerable knownTypes ) : System
type System.Type The type.
rootName string Name of the root.
rootNamespace string The root namespace.
knownTypes IEnumerable The known types.
return System

InheritableDataContractSerializer() public method

Initializes a new instance of the InheritableDataContractSerializer class.
public InheritableDataContractSerializer ( Type type, string rootName, string rootNamespace, IEnumerable knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, IDataContractSurrogate dataContractSurrogate ) : System
type System.Type The type.
rootName string Name of the root.
rootNamespace string The root namespace.
knownTypes IEnumerable The known types.
maxItemsInObjectGraph int The max items in object graph.
ignoreExtensionDataObject bool if set to true [ignore extension data object].
preserveObjectReferences bool if set to true [preserve object references].
dataContractSurrogate IDataContractSurrogate The data contract surrogate.
return System

IsStartObject() public method

Gets a value that specifies whether the T:System.Xml.XmlDictionaryReader is positioned over an XML element that can be read.
public IsStartObject ( XmlDictionaryReader reader ) : bool
reader System.Xml.XmlDictionaryReader An used to read the XML stream or document.
return bool

IsStartObject() public method

Gets a value that specifies whether the T:System.Xml.XmlReader is positioned over an XML element that can be read.
public IsStartObject ( XmlReader reader ) : bool
reader XmlReader An used to read the XML stream or document.
return bool

ReadObject() public method

Reads the XML stream or document with a T:System.IO.Stream and returns the deserialized object.
public ReadObject ( Stream stream ) : object
stream Stream A used to read the XML stream or document.
return object

ReadObject() public method

Reads the XML document or stream with an T:System.Xml.XmlDictionaryReader and returns the deserialized object.
public ReadObject ( XmlDictionaryReader reader ) : object
reader System.Xml.XmlDictionaryReader An used to read the XML document.
return object

ReadObject() public method

Reads the XML stream or document with an T:System.Xml.XmlDictionaryReader and returns the deserialized object; it also enables you to specify whether the serializer can read the data before attempting to read it.
public ReadObject ( XmlDictionaryReader reader, bool verifyObjectName ) : object
reader System.Xml.XmlDictionaryReader An used to read the XML document.
verifyObjectName bool true to check whether the enclosing XML element name and namespace correspond to the root name and root namespace; otherwise, false to skip the verification.
return object

ReadObject() public method

Reads the XML document or stream with an T:System.Xml.XmlReader and returns the deserialized object.
public ReadObject ( XmlReader reader ) : object
reader XmlReader An used to read the XML stream or document.
return object

ReadObject() public method

Reads the XML document or stream with an T:System.Xml.XmlReader and returns the deserialized object; it also enables you to specify whether the serializer can read the data before attempting to read it.
public ReadObject ( XmlReader reader, bool verifyObjectName ) : object
reader XmlReader An used to read the XML document or stream.
verifyObjectName bool true to check whether the enclosing XML element name and namespace correspond to the root name and root namespace; false to skip the verification.
return object

WriteEndObject() public method

Writes the end of the object data as a closing XML element to the XML document or stream with an T:System.Xml.XmlDictionaryWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteEndObject ( XmlDictionaryWriter writer ) : void
writer System.Xml.XmlDictionaryWriter An used to write the XML document or stream.
return void

WriteEndObject() public method

Writes the end of the object data as a closing XML element to the XML document or stream with an T:System.Xml.XmlWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteEndObject ( XmlWriter writer ) : void
writer System.Xml.XmlWriter An used to write the XML document or stream.
return void

WriteObject() public method

Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified T:System.IO.Stream.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteObject ( Stream stream, object graph ) : void
stream Stream A used to write the XML document or stream.
graph object The object that contains the data to write to the stream.
return void

WriteObject() public method

Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified T:System.Xml.XmlDictionaryWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteObject ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter An used to write the content to the XML document or stream.
graph object The object that contains the content to write.
return void

WriteObject() public method

Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified T:System.Xml.XmlWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteObject ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter An used to write the XML document or stream.
graph object The object that contains the content to write.
return void

WriteObjectContent() public method

Writes only the content of the object to the XML document or stream using the specified T:System.Xml.XmlDictionaryWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteObjectContent ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter An used to write the XML document or stream.
graph object The object that contains the content to write.
return void

WriteObjectContent() public method

Writes only the content of the object to the XML document or stream with the specified T:System.Xml.XmlWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteObjectContent ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter An used to write the XML document or stream.
graph object The object that contains the content to write.
return void

WriteStartObject() public method

Writes the start of the object's data as an opening XML element using the specified T:System.Xml.XmlDictionaryWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteStartObject ( XmlDictionaryWriter writer, object graph ) : void
writer System.Xml.XmlDictionaryWriter An used to write the XML document.
graph object The object to serialize.
return void

WriteStartObject() public method

Writes the start of the object's data as an opening XML element using the specified T:System.Xml.XmlWriter.
the type being serialized does not conform to data contract rules. For example, the attribute has not been applied to the type. there is a problem with the instance being serialized. the maximum number of objects to serialize has been exceeded. Check the property.
public WriteStartObject ( XmlWriter writer, object graph ) : void
writer System.Xml.XmlWriter An used to write the XML document.
graph object The object to serialize.
return void