private void PopHistory() { CurrentServiceRight = History.Pop().ServiceRight; PointCounterHistoryItem <TPoint> peek = History.Peek(); (InternalPointA, InternalPointB) = peek.PointCounts; }
private void PushHistory(PointCounterHistoryItem <TPoint> points) { History.Push(new PointCounterHistoryItem <TPoint>(points.PointCounts, CurrentServiceRight)); (InternalPointA, InternalPointB) = points.PointCounts; CurrentServiceRight = points.ServiceRight; }
public bool Equals(PointCounterHistoryItem <TPoint> other) => PointCounts.Equals(other.PointCounts) && ServiceRight == other.ServiceRight;