private void CheckValidity() { if (frames.Count == 10) { throw new ArgumentException("at most 10 frames"); } }