public override bool Equals(object obj) { if (obj == null) { return(false); } // If parameter cannot be cast to TestSet return false. TestSet p = obj as TestSet; if ((System.Object)p == null) { return(false); } // Return true if the fields match: if (!p.Name.Equals(this.Name)) { return(false); } for (int i = 0; i < 16; i++) { if (p.Parameters[i] != (this.Parameters[i])) { return(false); } } if (!p.ImagePath.Equals(this.ImagePath)) { return(false); } return(true); }
public object Clone() { TestSet ts = (TestSet)this.MemberwiseClone(); //Name ts.Name = this.Name; //Parameters for (int i = 0; i < 16; i++) { ts.Parameters[i] = this.Parameters[i]; } //ImagePath ts.ImagePath = this.ImagePath; return(ts); }