Difference between revisions of "Collections Csharp"

From Teknologisk videncenter
Jump to: navigation, search
m (added Category:Csharp using HotCat)
m
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 11:56, 19 January 2017

  • List<T> - A list of objects that can be accessed by index as an array. But with additional methods to search, sort, delete, push any many other methods.
  • Queue<T> - A First-in First-out (FIFO) data structure.
  • Stack<T> - A First-in Last-out (FILO) data structrure
  • LinkedList<T> - A double-ended ordered list optimized to insert and remove at either end. Can function as a Queue<T> or an Stack<T> but also supports random access as List<T>
  • Hashset<T> An unordered set of values optimized for fast retrival.
  • Dictionary<TKey,TValue> A collection of values that can be indentified and retreived using a key.
  • SortedList<TKey, TValue> A sorted list of key/Value pairs. Keys must be implement IComparable<T> interface.