override public Boolean isEqualTo(FBAbstractElement other) { if (other.GetType() != this.GetType()) { return(false); } FBDirectory othdir = (FBDirectory)other; if (othdir.content.Count != this.content.Count) { return(false); } foreach (KeyValuePair <string, FBAbstractElement> entry in this.content) { if (!othdir.content.ContainsKey(entry.Key)) { return(false); } else if (!entry.Value.isEqualTo(othdir.content[entry.Key])) { return(false); } } return(true); }
public void addContent(FBAbstractElement newElement) { if (newElement == null) { return; } this.content.Add(newElement.Name, newElement); }
override public Boolean isEqualTo(FBAbstractElement other) { if (other.GetType() != this.GetType()) { return(false); } return(this.root.isEqualTo(((FBVersion)other).root)); }
public abstract Boolean isEqualTo(FBAbstractElement other);
public override Boolean isEqualTo(FBAbstractElement other) { if (other.GetType() != this.GetType()) { return false; } return this.root.isEqualTo(((FBVersion)other).root); }
public void addElement(FBAbstractElement element) { this.root.addContent(element); }
public void addContent(FBAbstractElement newElement) { if (newElement == null) return; this.content.Add(newElement.Name, newElement); }
public override Boolean isEqualTo(FBAbstractElement other) { if (other.GetType() != this.GetType()) { return false; } FBDirectory othdir = (FBDirectory) other; if (othdir.content.Count != this.content.Count) return false; foreach (KeyValuePair<string, FBAbstractElement> entry in this.content) { if (!othdir.content.ContainsKey(entry.Key)) return false; else if (!entry.Value.isEqualTo(othdir.content[entry.Key])) return false; } return true; }
abstract public Boolean isEqualTo(FBAbstractElement other);
override public Boolean isEqualTo(FBAbstractElement other) { return(Equals(other)); }