public void RemoveMarkAt(int position) { if (position >= 0 && position < marks.Count) { Marks.RemoveAt(position); } else { throw new IndexOutOfRangeException("Index out of range"); } }
public void RemoveMarkAt(int position) { if (position >= 0 && position < marks.Count) { Marks.RemoveAt(position); } else { throw new IndexOutOfRangeException("Index out of range"); } }