[]
        
(Showing Draft Content)

C1.Win.C1TrueDBGrid.Util.Xml.Serialization.Serializer

Serializer Class

Serializes and deserializes objects into and from XML.

Inheritance
Serializer
Namespace: C1.Win.C1TrueDBGrid.Util.Xml.Serialization
Assembly: C1.Win.C1TrueDBGrid.4.8.dll
Syntax
public class Serializer
Remarks

All the methods in this class are static (Shared in Visual Basic). You cannot create an instance of this class.

Constructors

Name Description
Serializer()

Properties

Name Description
Formatting

Sets or returns formatting used by the XML writer.

Indentation

Sets or returns indentation used by the XML writer.

NonPublic

Sets or returns serialization of non-public properties. If true non-public properties are included, but are hidden by default. Public properties are always visible by default.

OnLongOpInProgressProvider

Sets or returns the object implementing IOnLongOpInProgressProvider interface (can be used to provide visual feedback to the user during serialization).

SerializeDefaultValues

Gets or sets a value indicating whether all the values are to be persistent.

Methods

Name Description
Deserialize(Stream, Type)

Deserializes an XML-document instance

Deserialize(string, Type)

Deserializes an XML document string

Deserialize(XmlTextReader, object, Type, Type)

Deserializes object

Deserialize(XmlTextReader, Type)

Deserializes an XML-document instance

DeserializeText(XmlTextReader, Type)

Deserializes text of element or attribute into object of appropriate type

Serialize(Stream, object, MemberInfo, XmlSerializerNamespaces)

Serializes the specified Object and writes the XML-document instance to a file using the specified Stream.

Serialize(Stream, object, MemberInfo, XmlSerializerNamespaces, out XmlTextWriter)

Serializes the specified Object and writes the XML-document instance to a file using the specified Stream. DOES NOT close the underlying stream. Useful for copying objects. Caller is responsible to call out writer.Close() to close writer and underlying stream.

Serialize(Stream, object, MemberInfo, XmlSerializerNamespaces, out XmlTextWriter, Attribute[])
Serialize(Stream, object, XmlSerializerNamespaces)

Serializes the specified Object and writes the XML-document instance to a file using the specified Stream.

Serialize(Stream, object, XmlSerializerNamespaces, out XmlTextWriter)

Serializes the specified Object and writes the XML-document instance to a file using the specified Stream. DOES NOT close the underlying stream. Useful for copying objects. Caller is responsible to call out writer.Close() to close writer and underlying stream.

Serialize(object, MemberInfo, XmlSerializerNamespaces)

Serializes the specified object to an XML formatted string.

Serialize(XmlTextWriter, object, MemberInfo, XmlSerializerNamespaces, Attribute[])

Serializes the specified Object and writes the XML-document instance to a file using the specified XmlWriter

Serialize(XmlTextWriter, object, XmlSerializerNamespaces)

Serializes the specified Object and writes the XML-document instance to a file using the specified XmlWriter