public Cookie this[int index] { get { if (index < 0 || index >= _list.Count) { throw new ArgumentOutOfRangeException(nameof(index)); } return _list[index]; } }