public void AddMetric(double metric) { if (metric < 0) { throw new ArgumentException(nameof(metric)); } MetricData.ShiftLeft(); MetricData[MetricData.Count - 1] = metric; }