internal KeyList(SessionRequestCollection list)
 {
     this.list = list;
 }
        /// <summary>
        ///		Creates a shallow copy of the <b>SessionRequestCollection</b>.
        /// </summary>
        /// <returns>A shallow copy of the <see cref="SessionRequestCollection"/>.</returns>
        public virtual object Clone()
        {
            SessionRequestCollection newList = new SessionRequestCollection(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(SessionRequestCollection list)
 {
     this.list = list;
     this.root = list.SyncRoot;
 }
        /// <summary>
        ///		Returns a synchronized (thread-safe) wrapper for the <b>SessionRequestCollection</b>.
        /// </summary>
        /// <param name="list">The <see cref="SessionRequestCollection"/> to synchronize.</param>
        /// <returns>A synchronized (thread-safe) wrapper for the <see cref="SessionRequestCollection"/>.</returns>
        /// <exception cref="ArgumentNullException"><paramref name="list"/> is a null reference.</exception>
        public static SessionRequestCollection Synchronized(SessionRequestCollection list)
        {
            if (list == null)
                throw new ArgumentNullException("list", "The list cannot be null.");

            return new SyncSortedList(list);
        }
 internal SortedListEnumerator(SessionRequestCollection 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;
 }