public bool Equals(HddToMonitor other) { if (other == null) { return(false); } return(this.GetHashCode() == other.GetHashCode()); }
/// <summary> /// Copies the object. /// </summary> /// <returns></returns> public HddToMonitor Copy() { HddToMonitor hdd = new HddToMonitor(); hdd.EnableCheckHddLoad = this.EnableCheckHddLoad; hdd.HddLoad = this.HddLoad; hdd.Drive = this.Drive; return(hdd); }
public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } HddToMonitor other = obj as HddToMonitor; return(this.Equals(other)); }