/// <summary> /// Determines whether the specified System.Object is equal /// to the current System.Object. /// </summary> /// <param name="obj">Object</param> /// <returns>Boolean value</returns> public override bool Equals(object obj) { if (obj == null) { return(false); } BaseMachine m = obj as BaseMachine; if (m == null || this.GetType() != m.GetType()) { return(false); } return(this.Id.Value == m.Id.Value); }