public Constraint this[int index] { get { if (index >= 0 && index < List.Count) { return (Constraint)List[index]; } throw ExceptionBuilder.ConstraintOutOfRange(index); } }