Comparison of collection datatypes in C#
Posted
by Joel in Gö
on Stack Overflow
See other posts from Stack Overflow
or by Joel in Gö
Published on 2009-06-15T12:10:00Z
Indexed on
2010/04/17
15:23 UTC
Read the original article
Hit count: 275
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.
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!
© Stack Overflow or respective owner