// 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 { return default(int); } } public int Count { get { return default(int); } } public bool IsAddingCompleted { get { return default(bool); } } public bool IsCompleted { get { return default(bool); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } 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) { return default(int); } public static int AddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, System.Threading.CancellationToken cancellationToken) { return default(int); } 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() { return default(System.Collections.Generic.IEnumerable); } public System.Collections.Generic.IEnumerable GetConsumingEnumerable(System.Threading.CancellationToken cancellationToken) { return default(System.Collections.Generic.IEnumerable); } System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { return default(System.Collections.Generic.IEnumerator); } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } public T Take() { return default(T); } public T Take(System.Threading.CancellationToken cancellationToken) { return default(T); } public static int TakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item) { item = default(T); return default(int); } public static int TakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, System.Threading.CancellationToken cancellationToken) { item = default(T); return default(int); } public T[] ToArray() { return default(T[]); } public bool TryAdd(T item) { return default(bool); } public bool TryAdd(T item, int millisecondsTimeout) { return default(bool); } public bool TryAdd(T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { return default(bool); } public bool TryAdd(T item, System.TimeSpan timeout) { return default(bool); } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item) { return default(int); } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, int millisecondsTimeout) { return default(int); } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { return default(int); } public static int TryAddToAny(System.Collections.Concurrent.BlockingCollection[] collections, T item, System.TimeSpan timeout) { return default(int); } public bool TryTake(out T item) { item = default(T); return default(bool); } public bool TryTake(out T item, int millisecondsTimeout) { item = default(T); return default(bool); } public bool TryTake(out T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { item = default(T); return default(bool); } public bool TryTake(out T item, System.TimeSpan timeout) { item = default(T); return default(bool); } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item) { item = default(T); return default(int); } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, int millisecondsTimeout) { item = default(T); return default(int); } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, int millisecondsTimeout, System.Threading.CancellationToken cancellationToken) { item = default(T); return default(int); } public static int TryTakeFromAny(System.Collections.Concurrent.BlockingCollection[] collections, out T item, System.TimeSpan timeout) { item = default(T); return default(int); } } 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 { return default(int); } } public bool IsEmpty { get { return default(bool); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } public void Add(T item) { } public void CopyTo(T[] array, int index) { } public System.Collections.Generic.IEnumerator GetEnumerator() { return default(System.Collections.Generic.IEnumerator); } bool System.Collections.Concurrent.IProducerConsumerCollection.TryAdd(T item) { return default(bool); } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } public T[] ToArray() { return default(T[]); } public bool TryPeek(out T result) { result = default(T); return default(bool); } public bool TryTake(out T result) { result = default(T); return default(bool); } } 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 { return default(int); } } public bool IsEmpty { get { return default(bool); } } public TValue this[TKey key] { get { return default(TValue); } set { } } public System.Collections.Generic.ICollection Keys { get { return default(System.Collections.Generic.ICollection); } } bool System.Collections.Generic.ICollection>.IsReadOnly { get { return default(bool); } } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Keys { get { return default(System.Collections.Generic.IEnumerable); } } System.Collections.Generic.IEnumerable System.Collections.Generic.IReadOnlyDictionary.Values { get { return default(System.Collections.Generic.IEnumerable); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } bool System.Collections.IDictionary.IsFixedSize { get { return default(bool); } } bool System.Collections.IDictionary.IsReadOnly { get { return default(bool); } } object System.Collections.IDictionary.this[object key] { get { return default(object); } set { } } System.Collections.ICollection System.Collections.IDictionary.Keys { get { return default(System.Collections.ICollection); } } System.Collections.ICollection System.Collections.IDictionary.Values { get { return default(System.Collections.ICollection); } } public System.Collections.Generic.ICollection Values { get { return default(System.Collections.Generic.ICollection); } } public TValue AddOrUpdate(TKey key, TValue addValue, System.Func updateValueFactory) { return default(TValue); } public TValue AddOrUpdate(TKey key, System.Func addValueFactory, System.Func updateValueFactory) { return default(TValue); } public void Clear() { } public bool ContainsKey(TKey key) { return default(bool); } public System.Collections.Generic.IEnumerator> GetEnumerator() { return default(System.Collections.Generic.IEnumerator>); } public TValue GetOrAdd(TKey key, TValue value) { return default(TValue); } public TValue GetOrAdd(TKey key, System.Func valueFactory) { return default(TValue); } void System.Collections.Generic.ICollection>.Add(System.Collections.Generic.KeyValuePair keyValuePair) { } bool System.Collections.Generic.ICollection>.Contains(System.Collections.Generic.KeyValuePair keyValuePair) { return default(bool); } void System.Collections.Generic.ICollection>.CopyTo(System.Collections.Generic.KeyValuePair[] array, int index) { } bool System.Collections.Generic.ICollection>.Remove(System.Collections.Generic.KeyValuePair keyValuePair) { return default(bool); } void System.Collections.Generic.IDictionary.Add(TKey key, TValue value) { } bool System.Collections.Generic.IDictionary.Remove(TKey key) { return default(bool); } 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) { return default(bool); } System.Collections.IDictionaryEnumerator System.Collections.IDictionary.GetEnumerator() { return default(System.Collections.IDictionaryEnumerator); } void System.Collections.IDictionary.Remove(object key) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } public System.Collections.Generic.KeyValuePair[] ToArray() { return default(System.Collections.Generic.KeyValuePair[]); } public bool TryAdd(TKey key, TValue value) { return default(bool); } public bool TryGetValue(TKey key, out TValue value) { value = default(TValue); return default(bool); } public bool TryRemove(TKey key, out TValue value) { value = default(TValue); return default(bool); } public bool TryUpdate(TKey key, TValue newValue, TValue comparisonValue) { return default(bool); } } 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 { return default(int); } } public bool IsEmpty { get { return default(bool); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } public void CopyTo(T[] array, int index) { } public void Enqueue(T item) { } public System.Collections.Generic.IEnumerator GetEnumerator() { return default(System.Collections.Generic.IEnumerator); } bool System.Collections.Concurrent.IProducerConsumerCollection.TryAdd(T item) { return default(bool); } bool System.Collections.Concurrent.IProducerConsumerCollection.TryTake(out T item) { item = default(T); return default(bool); } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } public T[] ToArray() { return default(T[]); } public bool TryDequeue(out T result) { result = default(T); return default(bool); } public bool TryPeek(out T result) { result = default(T); return default(bool); } } 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 { return default(int); } } public bool IsEmpty { get { return default(bool); } } bool System.Collections.ICollection.IsSynchronized { get { return default(bool); } } object System.Collections.ICollection.SyncRoot { get { return default(object); } } public void Clear() { } public void CopyTo(T[] array, int index) { } public System.Collections.Generic.IEnumerator GetEnumerator() { return default(System.Collections.Generic.IEnumerator); } 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) { return default(bool); } bool System.Collections.Concurrent.IProducerConsumerCollection.TryTake(out T item) { item = default(T); return default(bool); } void System.Collections.ICollection.CopyTo(System.Array array, int index) { } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); } public T[] ToArray() { return default(T[]); } public bool TryPeek(out T result) { result = default(T); return default(bool); } public bool TryPop(out T result) { result = default(T); return default(bool); } public int TryPopRange(T[] items) { return default(int); } public int TryPopRange(T[] items, int startIndex, int count) { return default(int); } } [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 { return default(bool); } } public bool KeysOrderedAcrossPartitions { get { return default(bool); } } public bool KeysOrderedInEachPartition { get { return default(bool); } } public override System.Collections.Generic.IEnumerable GetDynamicPartitions() { return default(System.Collections.Generic.IEnumerable); } public virtual System.Collections.Generic.IEnumerable> GetOrderableDynamicPartitions() { return default(System.Collections.Generic.IEnumerable>); } public abstract System.Collections.Generic.IList>> GetOrderablePartitions(int partitionCount); public override System.Collections.Generic.IList> GetPartitions(int partitionCount) { return default(System.Collections.Generic.IList>); } } public static partial class Partitioner { public static System.Collections.Concurrent.OrderablePartitioner> Create(int fromInclusive, int toExclusive) { return default(System.Collections.Concurrent.OrderablePartitioner>); } public static System.Collections.Concurrent.OrderablePartitioner> Create(int fromInclusive, int toExclusive, int rangeSize) { return default(System.Collections.Concurrent.OrderablePartitioner>); } public static System.Collections.Concurrent.OrderablePartitioner> Create(long fromInclusive, long toExclusive) { return default(System.Collections.Concurrent.OrderablePartitioner>); } public static System.Collections.Concurrent.OrderablePartitioner> Create(long fromInclusive, long toExclusive, long rangeSize) { return default(System.Collections.Concurrent.OrderablePartitioner>); } public static System.Collections.Concurrent.OrderablePartitioner Create(TSource[] array, bool loadBalance) { return default(System.Collections.Concurrent.OrderablePartitioner); } public static System.Collections.Concurrent.OrderablePartitioner Create(System.Collections.Generic.IEnumerable source) { return default(System.Collections.Concurrent.OrderablePartitioner); } public static System.Collections.Concurrent.OrderablePartitioner Create(System.Collections.Generic.IEnumerable source, System.Collections.Concurrent.EnumerablePartitionerOptions partitionerOptions) { return default(System.Collections.Concurrent.OrderablePartitioner); } public static System.Collections.Concurrent.OrderablePartitioner Create(System.Collections.Generic.IList list, bool loadBalance) { return default(System.Collections.Concurrent.OrderablePartitioner); } } public abstract partial class Partitioner { protected Partitioner() { } public virtual bool SupportsDynamicPartitions { get { return default(bool); } } public virtual System.Collections.Generic.IEnumerable GetDynamicPartitions() { return default(System.Collections.Generic.IEnumerable); } public abstract System.Collections.Generic.IList> GetPartitions(int partitionCount); } }