public void Replace(Source oldSource, Source newSource, bool updateParentState) { // Check first. if (((IElementIdentification)oldSource).ElementKey != ((IElementIdentification)newSource).ElementKey) { Namespaces.CheckAddElement(newSource); } Sources.Replace(oldSource, newSource); if (updateParentState) { UpdateStatesOnSourceRemoved(oldSource); UpdateStatesOnSourceAdded(newSource); } }
internal bool Equals(Namespaces other) { return(base.Equals(other)); }