在.NET非泛型集合过时了吗?NET、非泛型

2023-09-03 05:44:47 作者:╰看淡ㄋy所有

换句话说:

有一个很好的理由要选择一个松散类型集合在一个类型安全的一(哈希表与词典)?难道他们还在那里仅用于兼容?

Is there a good reason to choose a loosely-typed collection over a type-safe one (HashTable vs. Dictionary)? Are they still there only for compatibility?

据我了解,泛型集合不仅是类型安全的,但它们的性能更好。

As far as I understand, generic collections not only are type-safe, but their performance is better.

下面是关于这一主题的COM prehensive文章:全面检查数据结构使用C#2.0 。

Here's a comprehensive article on the topic: An Extensive Examination of Data Structures Using C# 2.0.

推荐答案

非泛型集合是如此过时,他们已经从Silverlight中使用的CoreCLR删除,Live Mesh的。

The non-generic collections are so obsolete that they've been removed from the CoreCLR used in Silverlight and Live Mesh.