ConcurrentQueue<T>.Enqueue Method
Adds an object to the end of the ConcurrentQueue<T>.
Assembly: mscorlib (in mscorlib.dll)
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
suggestion: return value
It would be very helpful in some usecases, if this method has a boolean return value,
whitch says that the enqueued value is a first entry in queue. This allow to write code like below:
if(queue.Enqueue(value)) StartWorker(queue);
whitch says that the enqueued value is a first entry in queue. This allow to write code like below:
if(queue.Enqueue(value)) StartWorker(queue);
- 10/5/2011
- littlesuspense
- 10/5/2011
- littlesuspense