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

编程入门 行业动态 更新时间:2024-10-26 16:24:21
本文介绍了在.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非泛型集合过时了吗?

本文发布于:2023-11-07 14:56:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566755.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NET   非泛型

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!