Home
Browse all 647 examples
Download all 647 examples
Download sample chapters
Reviews
Errata
Acknowledgments
Links on .NET
Paradoxal Press

Buy directly from Paradoxal Press at $33.99 (Save 43%)



Category: Programming
Level: Beginner to seasoned
900 pages
ISBN-10 097661322-0
ISBN-13 978-097661322-0
$59.99 USA
$79.99 CANADA


Chapter 15: Collections


Chapter 14<     > Chapter 16


Listings: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Table of content:

Iterating through the items of a collection with the 'foreach' and 'in' keywords
       Using foreach and in on an array
       The foreach syntax on jagged arrays
       Supporting the foreach syntax on your custom collection classes

Arrays
       Creating and referencing an array
       Accessing array items and handling out-of-bounds access
       Jagged arrays
       Initializing array items
       Array covariance
       The System.Array class
       Bit arrays

Sequences
       The System.Collections.Generic.ICollection<T> interface
       The System.Collections.Generic.IList<T> interface
       The System.Collections.Generic.List<T> class
       The System.ComponentModel.IBindingList and System.ComponentModel.IListSource interfaces
       The System.Collections.Generic.LinkedList<T> class
       List of strings
       The System.Collections.Generic.Queue<T> class
       The System.Collections.Generic.Stack<T> class

Dictionaries
       The Sytem.Collections.Generic.IDictionary<K,V> interface
       The System.Collections.Generic.SortedDictionary<K,V> class
       The System.Collections.Generic.Dictionary<K,V> class
       Iterating through the items of a dictionary

Sorting items of a collection
       The IComparer<T> and IComparable<T> interfaces
       Sorting items of an array
       Sorting the elements of an instance of List<T>

Functors as a mean to work with collections
       Specialized delegate types
       Using anonymous methods
       List<T> and Array classes support for functors
       C#2 iterators and collections

Correspondence between System.Collections.Generic and System.Collections



Copyright Patrick Smacchia 2006 2007