public override bool Equals(object obj) { MesScmsStationShelf another = obj as MesScmsStationShelf; if (another == null) { return false; } else { return (this.ShelfNo == another.ShelfNo); } }