コード例 #1
0
			internal SyncSortedList(DbConnectionProviders list) {
				this.list = list;
				this.root = list.SyncRoot;
			}
コード例 #2
0
		/// <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);
		}
コード例 #3
0
		/// <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;
		}
コード例 #4
0
			internal ValueList(DbConnectionProviders list) {
				this.list = list;
			}
コード例 #5
0
			internal KeyList(DbConnectionProviders list) {
				this.list = list;
			}
コード例 #6
0
			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;
			}