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