Пример #1
0
 public void Read(XmlNode node, object instance)
 {
     NetReflector.CheckNull(node, "node", typeof(XmlNode));
     NetReflector.CheckNull(instance, "instance", typeof(object));
     new XmlTypeSerialiser(instance.GetType(), new ReflectorTypeAttribute(instance.GetType().Name)).ReadMembers(node, instance, table);
 }
Пример #2
0
 public void Read(TextReader reader, object instance)
 {
     NetReflector.CheckNull(reader, "reader", typeof(TextReader));
     Read(new XmlTextReader(reader), instance);
 }
Пример #3
0
 public void Read(XmlReader reader, object instance)
 {
     NetReflector.CheckNull(reader, "reader", typeof(XmlReader));
     Read(XmlUtil.ReadNode(reader), instance);
 }
Пример #4
0
 public void Read(string xml, object instance)
 {
     NetReflector.CheckNull(xml, "xml", typeof(string));
     Read(new StringReader(xml), instance);
 }
Пример #5
0
 public object Read(XmlReader reader)
 {
     NetReflector.CheckNull(reader, "reader", typeof(XmlReader));
     return(Read(XmlUtil.ReadNode(reader)));
 }
Пример #6
0
 public object Read(TextReader reader)
 {
     NetReflector.CheckNull(reader, "reader", typeof(TextReader));
     return(Read(new XmlTextReader(reader)));
 }
Пример #7
0
 public NetReflectorWriter(XmlWriter writer)
 {
     NetReflector.CheckNull(writer, "writer", typeof(XmlWriter));
     this.writer = writer;
 }
Пример #8
0
 public NetReflectorWriter(TextWriter writer)
 {
     NetReflector.CheckNull(writer, "writer", typeof(TextWriter));
     this.writer = new XmlTextWriter(writer);
 }