■ CONTENTS
Sortability and Searchability .................................................................................................................248
Synchronization ....................................................................................................................................249
Vectors vs. Arrays .................................................................................................................................249
Multidimensional Rectangular Arrays ............................................................................251
Multidimensional Jagged Arrays....................................................................................253
Collection Types.............................................................................................................255
Comparing ICollection<T> with ICollection ..........................................................................................255
Collection Synchronization....................................................................................................................257
Lists.......................................................................................................................................................258
Dictionaries ...........................................................................................................................................259
Sets.......................................................................................................................................................259
System.Collections.ObjectModel...........................................................................................................260
Efficiency ..............................................................................................................................................262
IEnumerable<T>, IEnumerator<T>, IEnumerable, and IEnumerator.............................264
Types That Produce Collections............................................................................................................267
Iterators..........................................................................................................................268
Forward, Reverse, and Bidirectional Iterators ......................................................................................273
Collection Initializers......................................................................................................277
Summary........................................................................................................................278
■Chapter 10: Delegates, Anonymous Functions, and Events................................. 279
Overview of Delegates ...................................................................................................279
Delegate Creation and Use.............................................................................................280
Single Delegate.....................................................................................................................................281
Delegate Chaining.................................................................................................................................282
Iterating Through Delegate Chains........................................................................................................284
Unbound (Open Instance) Delegates.....................................................................................................285
Events ............................................................................................................................288
Anonymous Methods......................................................................................................292
Captured Variables and Closures ..........................................................................................................295