コード例 #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);
 }