21 Generic Collections; Functional Programming with LINQ/PLINQ

Objectives

In this chapter you’ll:

  • Learn about additional .NET generic collections.

  • Manipulate arrays with class Array’s static methods.

  • Provide a using static directive to access a class’s static members without fully qualifying their names.

  • Iterate through a collection with enumerators.

  • Use generic collections SortedDictionary and LinkedList.

  • Use the C# 6 null-conditional ?[] operator to access array or collection elements.

  • Use C# 6 index initializers to initialize a dictionary.

  • Store method references in delegate variables, then use those variables to invoke the corresponding methods.

  • Use lambda expressions to create anonymous methods and refer to those methods via delegate variables.

  • Use LINQ method-call syntax and lambdas to demonstrate functional programming techniques.

  • Parallelize LINQ operations with PLINQ for multicore performance.

  • Learn covariance and contravariance for generic types.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset