public override Substation Clone() { Substation clone = new Substation(); clone.Location = this.Location; clone.Name = this.Name; clone.Devices = this.Devices; return(clone); }
public override bool Equals(object obj) { Substation otherSub = obj as Substation; if (otherSub == null) { return(false); } return(this.Id == otherSub.Id && this.Name == otherSub.Name && this.Location == otherSub.Location); }