internal KeyList(UnitTestFormCollection list)
 {
     this.list = list;
 }
        /// <summary>
        ///		Creates a shallow copy of the <b>UnitTestFormCollection</b>.
        /// </summary>
        /// <returns>A shallow copy of the <see cref="UnitTestFormCollection"/>.</returns>
        public virtual object Clone()
        {
            UnitTestFormCollection newList = new UnitTestFormCollection(count);
            Array.Copy(keys, 0, newList.keys, 0, count);
            Array.Copy(values, 0, newList.values, 0, count);
            newList.count = count;
            newList.version = version;
            newList.comparer = comparer;

            return newList;
        }
 internal SyncSortedList(UnitTestFormCollection list)
 {
     this.list = list;
     this.root = list.SyncRoot;
 }
        /// <summary>
        ///		Returns a synchronized (thread-safe) wrapper for the <b>UnitTestFormCollection</b>.
        /// </summary>
        /// <param name="list">The <see cref="UnitTestFormCollection"/> to synchronize.</param>
        /// <returns>A synchronized (thread-safe) wrapper for the <see cref="UnitTestFormCollection"/>.</returns>
        /// <exception cref="ArgumentNullException"><paramref name="list"/> is a null reference.</exception>
        public static UnitTestFormCollection Synchronized(UnitTestFormCollection list)
        {
            if (list == null)
                throw new ArgumentNullException("list", "The list cannot be null.");

            return new SyncSortedList(list);
        }
 internal SortedListEnumerator(UnitTestFormCollection list, int index, int count, int returnType)
 {
     this.list = list;
     this.index = index;
     this.startIndex = index;
     this.endIndex = index + count;
     this.version = list.version;
     this.returnType = returnType;
     this.currentValid = false;
 }