// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // ------------------------------------------------------------------------------ // Changes to this file must follow the http://aka.ms/api-review process. // ------------------------------------------------------------------------------ namespace System.Collections.Concurrent { public partial class BlockingCollection : System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.ICollection, System.Collections.IEnumerable, System.IDisposable { public BlockingCollection() { } public BlockingCollection(System.Collections.Concurrent.IProducerConsumerCollection collection) { } public BlockingCollection(System.Collections.Concurrent.IProducerConsumerCollection collection, int boundedCapacity) { } public BlockingCollection(int boundedCapacity) { } public int BoundedCapacity { get { throw null; } } public int Count { get { throw null; } } public bool IsAddingCompleted { get { throw null; } } public bool IsCompleted { get { throw null; } } bool System.Collections.ICollection.IsSynchronized { get { throw null; } } object System.Collections.ICollection.SyncRoot { get { throw null; } } public void Add(T item) { } public void Add(T item, System.Threading.CancellationToken cancellationToken) { } public static int AddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item) { throw null; } public static int AddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, System.Threading.CancellationToken cancellationToken) { throw null; } public void CompleteAdding() { } public void CopyTo(T[] array, int index) { } public void Dispose() { } protected virtual void Dispose(bool disposing) { } public System.Collections.Generic.IEnumerable GetConsumingEnumerable() { throw null; } public System.Collections.Generic.IEnumerable GetConsumingEnumerable(System.Threading.CancellationToken cancellationToken) { throw null; } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } public T Take() { throw null; } public T Take(System.Threading.CancellationToken cancellationToken) { throw null; } public static int TakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item) { throw null; } public static int TakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, System.Threading.CancellationToken cancellationToken) { throw null; } public T[] ToArray() { throw null; } public bool TryAdd(T item) { throw null; } public bool TryAdd(T item, int millisecondsTimeout) { throw null; } public bool TryAdd(T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { throw null; } public bool TryAdd(T item, System.TimeSpan timeout) { throw null; } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item) { throw null; } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, int millisecondsTimeout) { throw null; } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { throw null; } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, System.TimeSpan timeout) { throw null; } public bool TryTake(out T item) { throw null; } public bool TryTake(out T item, int millisecondsTimeout) { throw null; } public bool TryTake(out T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { throw null; } public bool TryTake(out T item, System.TimeSpan timeout) { throw null; } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item) { throw null; } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, int millisecondsTimeout) { throw null; } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { throw null; } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, System.TimeSpan timeout) { throw null; } } public partial class ConcurrentBag : System.Collections.Concurrent.IProducerConsumerCollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.ICollection, System.Collections.IEnumerable { public ConcurrentBag() { } public ConcurrentBag(System.Collections.Generic.IEnumerable collection) { } public int Count { get { throw null; } } public bool IsEmpty { get { throw null; } } bool System.Collections.ICollection.IsSynchronized { get { throw null; } } object System.Collections.ICollection.SyncRoot { get { throw null; } } public void Add(T item) { } public void CopyTo(T[] array, int index) { } public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } bool System.Collections.Concurrent.IProducerConsumerCollection.TryAdd(T item) { throw null; } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } public T[] ToArray() { throw null; } public bool TryPeek(out T result) { throw null; } public bool TryTake(out T result) { throw null; } } public partial class ConcurrentDictionary : System.Collections.Generic.ICollection>, System.Collections.Generic.IDictionary, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable { public ConcurrentDictionary() { } public ConcurrentDictionary(System.Collections.Generic.IEnumerable> collection) { } public ConcurrentDictionary(System.Collections.Generic.IEnumerable> collection, System.Collections.Generic.IEqualityComparer comparer) { } public ConcurrentDictionary(System.Collections.Generic.IEqualityComparer comparer) { } public ConcurrentDictionary(int concurrencyLevel, System.Collections.Generic.IEnumerable> collection, System.Collections.Generic.IEqualityComparer comparer) { } public ConcurrentDictionary(int concurrencyLevel, int capacity) { } public ConcurrentDictionary(int concurrencyLevel, int capacity, System.Collections.Generic.IEqualityComparer comparer) { } public int Count { get { throw null; } } public bool IsEmpty { get { throw null; } } public TValue this[TKey key] { get { throw null; } set { } } public System.Collections.Generic.ICollection Keys { get { throw null; } } bool System.Collections.Generic.ICollection>.IsReadOnly { get { throw null; } } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get { throw null; } } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get { throw null; } } bool System.Collections.ICollection.IsSynchronized { get { throw null; } } object System.Collections.ICollection.SyncRoot { get { throw null; } } bool System.Collections.IDictionary.IsFixedSize { get { throw null; } } bool System.Collections.IDictionary.IsReadOnly { get { throw null; } } object System.Collections.IDictionary.this[object key] { get { throw null; } set { } } System.Collections.ICollection System.Collections.IDictionary.Keys { get { throw null; } } System.Collections.ICollection System.Collections.IDictionary.Values { get { throw null; } } public System.Collections.Generic.ICollection Values { get { throw null; } } public TValue AddOrUpdate(TKey key, TValue addValue, System.Func updateValueFactory) { throw null; } public TValue AddOrUpdate(TKey key, System.Func addValueFactory, System.Func updateValueFactory) { throw null; } public void Clear() { } public bool ContainsKey(TKey key) { throw null; } public System.Collections.Generic.IEnumerator> GetEnumerator() { throw null; } public TValue GetOrAdd(TKey key, TValue value) { throw null; } public TValue GetOrAdd(TKey key, System.Func valueFactory) { throw null; } void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair keyValuePair) { } bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair keyValuePair) { throw null; } void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int index) { } bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair keyValuePair) { throw null; } void System.Collections.Generic.IDictionary.Add(TKey key, TValue value) { } bool System.Collections.Generic.IDictionary.Remove(TKey key) { throw null; } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } void System.Collections.IDictionary.Add(object key, object value) { } bool System.Collections.IDictionary.Contains(object key) { throw null; } System.Collections.IDictionaryEnumerator System.Collections.IDictionary.GetEnumerator() { throw null; } void System.Collections.IDictionary.Remove(object key) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } public System.Collections.Generic.KeyValuePair[] ToArray() { throw null; } public bool TryAdd(TKey key, TValue value) { throw null; } public bool TryGetValue(TKey key, out TValue value) { throw null; } public bool TryRemove(TKey key, out TValue value) { throw null; } public bool TryUpdate(TKey key, TValue newValue, TValue comparisonValue) { throw null; } } public partial class ConcurrentQueue : System.Collections.Concurrent.IProducerConsumerCollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.ICollection, System.Collections.IEnumerable { public ConcurrentQueue() { } public ConcurrentQueue(System.Collections.Generic.IEnumerable collection) { } public int Count { get { throw null; } } public bool IsEmpty { get { throw null; } } bool System.Collections.ICollection.IsSynchronized { get { throw null; } } object System.Collections.ICollection.SyncRoot { get { throw null; } } public void CopyTo(T[] array, int index) { } public void Enqueue(T item) { } public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } bool System.Collections.Concurrent.IProducerConsumerCollection.TryAdd(T item) { throw null; } bool System.Collections.Concurrent.IProducerConsumerCollection.TryTake(out T item) { throw null; } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } public T[] ToArray() { throw null; } public bool TryDequeue(out T result) { throw null; } public bool TryPeek(out T result) { throw null; } } public partial class ConcurrentStack : System.Collections.Concurrent.IProducerConsumerCollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.ICollection, System.Collections.IEnumerable { public ConcurrentStack() { } public ConcurrentStack(System.Collections.Generic.IEnumerable collection) { } public int Count { get { throw null; } } public bool IsEmpty { get { throw null; } } bool System.Collections.ICollection.IsSynchronized { get { throw null; } } object System.Collections.ICollection.SyncRoot { get { throw null; } } public void Clear() { } public void CopyTo(T[] array, int index) { } public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } public void Push(T item) { } public void PushRange(T[] items) { } public void PushRange(T[] items, int startIndex, int count) { } bool System.Collections.Concurrent.IProducerConsumerCollection.TryAdd(T item) { throw null; } bool System.Collections.Concurrent.IProducerConsumerCollection.TryTake(out T item) { throw null; } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } public T[] ToArray() { throw null; } public bool TryPeek(out T result) { throw null; } public bool TryPop(out T result) { throw null; } public int TryPopRange(T[] items) { throw null; } public int TryPopRange(T[] items, int startIndex, int count) { throw null; } } [System.FlagsAttribute] public enum EnumerablePartitionerOptions { NoBuffering = 1, None = 0, } public partial interface IProducerConsumerCollection : System.Collections.Generic.IEnumerable, System.Collections.ICollection, System.Collections.IEnumerable { void CopyTo(T[] array, int index); T[] ToArray(); bool TryAdd(T item); bool TryTake(out T item); } public abstract partial class OrderablePartitioner : System.Collections.Concurrent.Partitioner { protected OrderablePartitioner(bool keysOrderedInEachPartition, bool keysOrderedAcrossPartitions, bool keysNormalized) { } public bool KeysNormalized { get { throw null; } } public bool KeysOrderedAcrossPartitions { get { throw null; } } public bool KeysOrderedInEachPartition { get { throw null; } } public override System.Collections.Generic.IEnumerable GetDynamicPartitions() { throw null; } public virtual System.Collections.Generic.IEnumerable> GetOrderableDynamicPartitions() { throw null; } public abstract System.Collections.Generic.IList>> GetOrderablePartitions(int partitionCount); public override System.Collections.Generic.IList> GetPartitions(int partitionCount) { throw null; } } public static partial class Partitioner { public static System.Collections.Concurrent.OrderablePartitioner> Create(int fromInclusive, int toExclusive) { throw null; } public static System.Collections.Concurrent.OrderablePartitioner> Create(int fromInclusive, int toExclusive, int rangeSize) { throw null; } public static System.Collections.Concurrent.OrderablePartitioner> Create(long fromInclusive, long toExclusive) { throw null; } public static System.Collections.Concurrent.OrderablePartitioner> Create(long fromInclusive, long toExclusive, long rangeSize) { throw null; } public static System.Collections.Concurrent.OrderablePartitioner Create(TSource[] array, bool loadBalance) { throw null; } public static System.Collections.Concurrent.OrderablePartitioner Create(System.Collections.Generic.IEnumerable source) { throw null; } public static System.Collections.Concurrent.OrderablePartitioner Create(System.Collections.Generic.IEnumerable source, System.Collections.Concurrent.EnumerablePartitionerOptions partitionerOptions) { throw null; } public static System.Collections.Concurrent.OrderablePartitioner Create(System.Collections.Generic.IList list, bool loadBalance) { throw null; } } public abstract partial class Partitioner { protected Partitioner() { } public virtual bool SupportsDynamicPartitions { get { throw null; } } public virtual System.Collections.Generic.IEnumerable GetDynamicPartitions() { throw null; } public abstract System.Collections.Generic.IList> GetPartitions(int partitionCount); } }