private void Check() { if (count > 0 && list == null) throw new InvalidOperationException("This range does not refer to a list with data."); }