private void CheckCounterUse(string id) { foreach (Counter c in _counters) { if (c.ID.Equals(id)) throw new CounterIDAlreadyInUseException(id); } }