Beispiel #1
0
 /// <devdoc>
 /// <para>Gets the <see cref='System.Data.Constraint'/>
 /// from the collection at the specified index.</para>
 /// </devdoc>
 public Constraint this[int index] {
     get {
         if (index >= 0 && index < List.Count)
         {
             return((Constraint)List[index]);
         }
         throw ExceptionBuilder.ConstraintOutOfRange(index);
     }
 }
        /// <summary>
        /// Removes the constraint at the specified index from the collection.
        /// </summary>
        public void RemoveAt(int index)
        {
            Constraint c = this[index];

            if (c == null)
            {
                throw ExceptionBuilder.ConstraintOutOfRange(index);
            }
            Remove(c);
        }
Beispiel #3
0
 public Constraint this[int index]
 {
     get
     {
         if ((index < 0) || (index >= this.List.Count))
         {
             throw ExceptionBuilder.ConstraintOutOfRange(index);
         }
         return((Constraint)this.List[index]);
     }
 }