Show / Hide Table of Contents

Class XmlWriterExtensions

Extensions for System.Xml.XmlWriter to help serializing graph data.

Inheritance
System.Object
XmlWriterExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: QuikGraph.Serialization
Assembly: QuikGraph.Serialization.dll
Syntax
public static class XmlWriterExtensions

Methods

| Improve this Doc View Source

WriteArray<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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top QuikGraph