Search code examples
c#concurrent-queue

How to use: System.Collections.Concurrent


I am trying to add using System.Collections.Concurrent and it is not working.

The type or namespace name 'Concurrent' does not exist in the namespace 'System.Collections' (are you missing an assembly reference?)


Solution

  • Your ConcurrentQueue is only available from .NET 4. Upgrade your project to at least .NET 4.0.