2 using System.Xml.Serialization;
15 #region IXmlSerializable implementation
16 public void WriteXml(XmlWriter writer)
23 XmlSerializerNamespaces Namespaces =
new XmlSerializerNamespaces();
24 Namespaces.Add(
string.Empty,
string.Empty);
27 XmlSerializer serializer =
new XmlSerializer(typeof(
RGBAColorNamed));
28 serializer.Serialize(writer, C, Namespaces);
39 if (reader.IsEmptyElement)
41 reader.ReadStartElement();
47 while (reader.NodeType !=
System.Xml.XmlNodeType.EndElement)
52 XmlSerializer serializer =
new XmlSerializer(typeof(
RGBAColorNamed));
54 if (!Contains(C.
Name))
64 reader.ReadEndElement();
The namespace DirectOutput.Cab.Toys contains all toy related classes.
void ReadXml(XmlReader reader)
Deserializes the Color objects in the XmlReader. ReadXml is part of the IXmlSerializable interface...
string Name
Name of the Named item. Triggers BeforeNameChange before a new Name is set. Triggers AfterNameChang...
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
Namespace for objects dealing with layers
System.Xml.Schema.XmlSchema GetSchema()
Method is required by the IXmlSerializable interface
A list of uniquely named items which can be referenced by their name.
The namespace DirectOutput.General contains classes for general use.
This class stores information on colors used for toys (e.g. RGBLed).