Ejemplo n.º 1
0
 public override object GetValue(
     IXmlNode node,
     IDictionaryAdapter parent,
     IXmlAccessor accessor
     )
 {
     return(node.ClrType == typeof(object)
       ? new object()
       : XmlTypeSerializer.For(node.ClrType).GetValue(node, parent, accessor));
 }
Ejemplo n.º 2
0
 public override void SetValue(IXmlNode node, IDictionaryAdapter parent, IXmlAccessor accessor, object oldValue, ref object value)
 {
     if (node.ClrType != typeof(object))
     {
         XmlTypeSerializer.For(node.ClrType).SetValue(node, parent, accessor, oldValue, ref value);
     }
     else
     {
         node.Clear();
     }
 }