public override bool Equals(object obj) { if (!(obj is GenericPosition)) { return(false); } GenericPosition pos = (GenericPosition)obj; return(X.Equals(pos.X) && Y.Equals(pos.Y) && Z.Equals(pos.Z)); }
public override bool Equals(object obj) { if (!(obj is GenericPosition)) { return(false); } GenericPosition genericPosition = (GenericPosition)obj; if (!this.X.Equals(genericPosition.X) || !this.Y.Equals(genericPosition.Y)) { return(false); } return(this.Z.Equals(genericPosition.Z)); }