/// <summary> /// Returns whether this <see cref="CGMLObject"/> contains the same hierarchy structure as <paramref name="other"/>. /// </summary> /// <param name="other">The other.</param> /// <param name="update">If true, copy missing nodes and attributes from <paramref name="other"/>.</param> /// <param name="trim">If true, remove nodes and attributes that don't appear in <paramref name="other"/>.</param> /// <param name="ignoreRoot">If true, ignore root node.</param> /// <returns>A bool.</returns> public bool ValidateAgainst(CGMLObject other, bool update, bool trim, bool ignoreRoot) { return(Root.Validate(other.Root, update, trim, ignoreRoot)); }
/// <summary> /// Creates a deep copy of another <see cref="CGMLObject"/>. /// </summary> /// <param name="original">The original object.</param> public CGMLObject(CGMLObject original) { Root = new Node(original.Root); }