问题描述
.NET带有一些内置集合(堆栈,队列,字典,列表等),但是缺少其他一些常见集合,例如优先级队列。 NuGet上有许多第三方集合库,但我想知道是否有一个正式的Microsoft库(例如现在称为 System.Collections.Immutable
的BCL不可变集合)
.NET comes with some built in collections (stack, queue, dictionary, list etc.) but others common collections, like priority queues, are missing. There are many third party collection libraries on NuGet but I was wondering if there is an official Microsoft one (like the BCL immutable collections now called System.Collections.Immutable
) library with things like (mutable) priorities queues?
编辑:重要的澄清(@rmunn发表评论):
Important clarification (comment by @rmunn):
推荐答案
否,。微软目前提供的所有内容。
No, not yet, anyway. Here is everything Microsoft offers at the moment.
编辑:Microsoft已编写(并在线共享)。您可以使用他们的代码。
Microsoft has written (and shared online) 2 internal PriorityQueue classes within the .NET Framework. You could use their code.
另请参见:
编辑2:您还可以关注,以防Microsoft曾发布过您建议的NuGet包类型。但是目前还没有骰子。
EDIT 2: You could also keep your eye on this space in case Microsoft ever publishes the type of NuGet package your question suggested. But at the moment, no dice.
这篇关于NET的Microsoft收藏集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!