集合数据类型在C#中的比较 [英] Comparison of collection datatypes in C#

查看:170
本文介绍了集合数据类型在C#中的比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道不同的C#集合类型的一个很好的概述?我要寻找的东西显示哪些基本的操作,如添加删除 RemoveLast 等的支持,并给予相对性能。

Does anyone know of a good overview of the different C# collection types? I am looking for something showing which basic operations such as Add, Remove, RemoveLast etc. are supported, and giving the relative performance.

这将是特别有趣的各种泛型类 - 甚至更好,如果它表现出如。如果在一个列表℃之间性能差异; T> ,其中 T 是一个类和一个其中 T 是一个结构。

It would be particularly interesting for the various generic classes - and even better if it showed eg. if there is a difference in performance between a List<T> where T is a class and one where T is a struct.

一开始会是一个很好的作弊表为抽象的数据结构,比较链表,哈希表等等,等等谢谢!

A start would be a nice cheat-sheet for the abstract data structures, comparing Linked Lists, Hash Tables etc. etc. Thanks!

推荐答案

你寻找什么呢存在。我忘了链接,并在试图找到我碰到这个问题绊倒了。无论如何,我发现该链接并认为我应该分享:
的http:/ /xbox.create.msdn.com/downloads/?id=123&filename=DataStructures_CheatSheet.doc

Exactly what you were looking for does exists. I forgot the link and in attempting to find it I stumbled across this question. Anyway I found the link and thought I should share it: http://xbox.create.msdn.com/downloads/?id=123&filename=DataStructures_CheatSheet.doc

这篇关于集合数据类型在C#中的比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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