使用方法:System.Collections.Concurrent

How to use: System.Collections.Concurrent

我正在尝试添加 using System.Collections.Concurrent 但它不起作用。

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

您的 ConcurrentQueue 仅适用于 .NET 4。将您的项目至少升级到 .NET 4.0。