在.NET非泛型集合过时了吗? [英] Are non-generic collections in .NET obsolete?

查看:139
本文介绍了在.NET非泛型集合过时了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

换句话说:

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

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.

这篇关于在.NET非泛型集合过时了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆