public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } var c = (Note)obj; return(startPosition.Equals(c.startPosition) && type == c.type); }
public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } var c = (Note)obj; return(position.Equals(c.position) && type == c.type && next.Equals(c.next) && prev.Equals(c.prev)); }