void swapRoot(object root) { Validate(getValidator(), root); object oldroot = _root; _root = root; ++_rev; NotifyWatches(oldroot, root); }