Ejemplo n.º 1
0
 public XmlAddNodeChange(XmlNodePath path, IImmutableXNode node)
 {
     if (path == null)
     {
         throw new ArgumentNullException("path");
     }
     Path = path;
     Node = node;
 }
Ejemplo n.º 2
0
        public static bool DeepEquals(this IImmutableXNode a, XNode b)
        {
            // NOCOMMIT! BLARGH DIRTY POO
            var xa = a as XNode;

            if (xa == null)
            {
                throw new NotSupportedException("Don't know how to check deep equality when node is not XNode");
            }
            return(xa.DeepEquals(b));
        }