2

Just want a brief overview of the differences of c#'s collection types, and what would the underlying data structure be for each?

e.g. string[], ArrayList, Array, List, and hashes, sets, etc.

I know of linked lists, binary trees (in general), but would be interested to know (at a high level) what advantages each has etc.

Blankman
  • 259,732
  • 324
  • 769
  • 1,199

2 Answers2

2

MSDN link on collections

Xaisoft
  • 45,655
  • 87
  • 279
  • 432
0

String[] would just be a straight string array. ArrayList adds the ability to Add() without having a size for the array up front, but loses strong typing. List adds strong typing. A Hash is a key value pair. that si a start.

Gregory A Beamer
  • 16,870
  • 3
  • 25
  • 32