Xml |
public class XmlStreamSerializationInfo : IXmlSerializationInfo
The XmlStreamSerializationInfo type exposes the following members.
| Name | Description | |
|---|---|---|
| XmlStreamSerializationInfo | Initializes a new instance of the XmlStreamSerializationInfo class. |
| Name | Description | |
|---|---|---|
| DefaultArrayEncoding | Gets or sets the default array encoding strategy. |
| Name | Description | |
|---|---|---|
| AddArray(String, IReadOnlyListDouble, Int32) | Writes an array of Double values. | |
| AddArray(String, IReadOnlyListInt32, Int32) | Writes an array of Int32 values. | |
| AddArray(String, IReadOnlyListObject, Int32) | Writes an array of object values. | |
| AddArray(String, IReadOnlyListString, Int32) | Writes an array of string values. | |
| AddArray(String, DateTime, Int32) | Writes an array of DateTime values. | |
| AddArray(String, Single, Int32) | Writes an array of Single values. | |
| AddArray(String, BitArray, BitArray, Int32) | Adds an array of nullable boolean values. The array val contains the boolean values, whereas the array cond indicates if the boolean value is set (true) or not set (false). | |
| AddArrayOfNullableElements | Writes an array of nullable object values. | |
| AddArrayOfPrimitiveType | Adds an array of primitive values using the specified XML encoding. | |
| AddAttributeValue(String, Int32) | Adds an Int32 attribute to the current element. | |
| AddAttributeValue(String, String) | Adds a string attribute to the current element. | |
| AddBaseValueEmbedded | Writes the embedded base portion of a derived object. | |
| AddBaseValueStandalone | Writes the standalone base portion of a derived object. | |
| AddEnum | Adds an enum value element. | |
| AddNullableEnumT | Adds a nullable enum value element. | |
| AddValue(String, Boolean) | Adds a boolean value element. | |
| AddValue(String, Char) | Adds a char value element. | |
| AddValue(String, DateTime) | Adds a DateTime value element. | |
| AddValue(String, Double) | Adds a Double value element. | |
| AddValue(String, Int32) | Adds an Int32 value element. | |
| AddValue(String, Int64) | Adds an Int64 value element. | |
| AddValue(String, MemoryStream) | Adds a MemoryStream value element. | |
| AddValue(String, NullableBoolean) | Adds a nullable boolean value element. | |
| AddValue(String, NullableDouble) | Adds a nullable Double value element. | |
| AddValue(String, NullableInt32) | Adds a nullable Int32 value element. | |
| AddValue(String, Object) | Adds a complex value by serializing the object. | |
| AddValue(String, Single) | Adds a Single value element. | |
| AddValue(String, String) | Adds a string value element. | |
| AddValue(String, TimeSpan) | Adds a TimeSpan value element. | |
| AddValueOrNull | Adds a complex value or null. | |
| BeginWriting(Stream) | Begins writing XML to the specified stream. | |
| BeginWriting(StringBuilder) | Begins writing XML to the specified string builder. | |
| BeginWriting(XmlWriter) | Begins the writing using an already created xmlWriter. WriteStartDocument is not called here, because we assume that the open XmlWriter has already done that. | |
| ClearProperties | Clears the property dictionary. Useful if the serialization info should be used to serialize multiple values. If you clear the properties before the serialization of each value, the serialization behaves as if each value is serialized independent of each other. | |
| CommitArray | Commits the current array scope. | |
| CommitElement | Commits the current element. | |
| CreateArray | Begins an array scope. | |
| CreateElement | Creates a child element to write values into. | |
| EndWriting | Ends XML writing and flushes or detaches the underlying writer. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetProperty | Gets a serializer property. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsSerializable | Checks if an object is serializable by this serializer. | |
| IsSerializableType | Determines whether the specified type can be serialized by the current surrogate selector. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| SaveAndSetProperty | Saves the current property value and then sets a new value. | |
| SetNodeContent | Sets the text content of the current node directly. | |
| SetProperty | Sets a serializer property. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| WriteRaw | Writes a raw Xml string. This can be used for instance if the string to write was lazy loaded from another Xml document. |
| Name | Description | |
|---|---|---|
| UseXmlIndentation | Property key that enables indented XML output. |