Class XmlWriterExtensions
Extensions for System.Xml.XmlWriter to help serializing graph data.
Inheritance
Inherited Members
Namespace: QuikGraph.Serialization
Assembly: QuikGraph.Serialization.dll
Syntax
public static class XmlWriterExtensions
Methods
| Improve this Doc View SourceWriteArray<T>(XmlWriter, IList<T>)
Writes an array as space separated values. There is a space after every value, even the last one. If array is null, it writes "null". If array is empty, it writes empty string. If array is a string array with only one element "null", then it writes "null ".
Declaration
public static void WriteArray<T>(XmlWriter xmlWriter, IList<T> value)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | xmlWriter | XML writer. |
System.Collections.Generic.IList<T> | value | List of values to write. |
Type Parameters
Name | Description |
---|---|
T | Element value. |
WriteBooleanArray(XmlWriter, IList<Boolean>)
Writes the content of value
as an array of booleans.
Declaration
public static void WriteBooleanArray(XmlWriter xmlWriter, IList<bool> value)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | xmlWriter | XML writer. |
System.Collections.Generic.IList<System.Boolean> | value | Array to serialize. |
WriteDoubleArray(XmlWriter, IList<Double>)
Writes the content of value
as an array of doubles.
Declaration
public static void WriteDoubleArray(XmlWriter xmlWriter, IList<double> value)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | xmlWriter | XML writer. |
System.Collections.Generic.IList<System.Double> | value | Array to serialize. |
WriteInt32Array(XmlWriter, IList<Int32>)
Writes the content of value
as an array of ints.
Declaration
public static void WriteInt32Array(XmlWriter xmlWriter, IList<int> value)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | xmlWriter | XML writer. |
System.Collections.Generic.IList<System.Int32> | value | Array to serialize. |
WriteInt64Array(XmlWriter, IList<Int64>)
Writes the content of value
as an array of longs.
Declaration
public static void WriteInt64Array(XmlWriter xmlWriter, IList<long> value)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | xmlWriter | XML writer. |
System.Collections.Generic.IList<System.Int64> | value | Array to serialize. |
WriteSingleArray(XmlWriter, IList<Single>)
Writes the content of value
as an array of floats.
Declaration
public static void WriteSingleArray(XmlWriter xmlWriter, IList<float> value)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | xmlWriter | XML writer. |
System.Collections.Generic.IList<System.Single> | value | Array to serialize. |
WriteStringArray(XmlWriter, IList<String>)
Writes the content of value
as an array of strings.
Declaration
public static void WriteStringArray(XmlWriter xmlWriter, IList<string> value)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | xmlWriter | XML writer. |
System.Collections.Generic.IList<System.String> | value | Array to serialize. |