예제 #1
0
        public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAccessor accessor, ref object value)
        {
            var newNode = (XmlNode)value;

            using (var writer = new XmlSubtreeWriter(node))
                newNode.WriteTo(writer);
        }
예제 #2
0
		public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAccessor accessor, object oldValue, ref object value)
		{
			var newNode = (XmlNode) value;

			using (var writer = new XmlSubtreeWriter(node))
				newNode.WriteTo(writer);
		}
예제 #3
0
 public override void SetValue(
     IXmlNode node,
     IDictionaryAdapter parent,
     IXmlAccessor accessor,
     object oldValue,
     ref object value
     )
 {
     using (var writer = new XmlSubtreeWriter(node))
         serializer.Serialize(writer, value);
 }
예제 #4
0
        public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAccessor accessor, object oldValue, ref object value)
        {
            var serializable = (IXmlSerializable)value;
            var root         = XmlDefaultSerializer.Root;

            using (var writer = new XmlSubtreeWriter(node))
            {
                // Pre-write containing element
                writer.WriteStartElement(string.Empty, root.ElementName, root.Namespace);
                serializable.WriteXml(writer);
                writer.WriteEndElement();
            }
        }
예제 #5
0
		public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAccessor accessor, object oldValue, ref object value)
		{
		    var serializable = (IXmlSerializable) value;
			var root = XmlDefaultSerializer.Root;

			using (var writer = new XmlSubtreeWriter(node))
			{
				// Pre-write containing element
				writer.WriteStartElement(string.Empty, root.ElementName, root.Namespace);
				serializable.WriteXml(writer);
				writer.WriteEndElement();
			}
		}
예제 #6
0
		public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAccessor accessor, object oldValue, ref object value)
		{
		    using (var writer = new XmlSubtreeWriter(node))
		        serializer.Serialize(writer, value);
		}