#if NET20 || NET30 || NET35 || !NET_4_6 using System.Collections.Generic; namespace System.Collections.Concurrent { public interface IProducerConsumerCollection : IEnumerable, ICollection { void CopyTo(T[] array, int index); T[] ToArray(); bool TryAdd(T item); bool TryTake(out T item); } } #endif