Does anyone know if, when iterating over C # BlockingCollection <>, the elements are taken from the collection, just like BlockingCollection.Take (), for example?
BlockingCollection<int> q = new BlockingCollection<int>();
[...]
foreach(int i in q)
{
}
thanks
EDIT: Of course, I meant BlockingCollection, but somehow got a BlockingQueue in my head and used that.
source
share