Page 34 - CSharp/C#
P. 34

1. Empty parameter                                                                                 593
          2. Lambda expression as parameter                                                                  593


          3. Empty collection                                                                                593

            ToDictionary                                                                                     594

            Aggregate                                                                                        595
            Defining a variable inside a Linq query (let keyword)                                            595

            SkipWhile                                                                                        596

            DefaultIfEmpty                                                                                   596

          Usage in Left Joins:                                                                               597

            SequenceEqual                                                                                    598

            Count and LongCount                                                                              598

            Incrementally building a query                                                                   598

            Zip                                                                                              600

            GroupJoin with outer range variable                                                              600
            ElementAt and ElementAtOrDefault                                                                 601

            Linq Quantifiers                                                                                 601

            Joining multiple sequences                                                                       602

            Joining on multiple keys                                                                         604

            Select with Func selector - Use to get ranking of elements                                       604

            TakeWhile                                                                                        606

            Sum                                                                                              606
            ToLookup                                                                                         606

            Build your own Linq operators for IEnumerable                                                    607

            Using SelectMany instead of nested loops                                                         608

            Any and First(OrDefault) - best practice                                                         608

            GroupBy Sum and Count                                                                            609

            Reverse                                                                                          610

            Enumerating the Enumerable                                                                       611

            OrderBy                                                                                          613

            OrderByDescending                                                                                614
            Concat                                                                                           615

            Contains                                                                                         615

        Chapter 93: Linq to Objects                                                                         617
   29   30   31   32   33   34   35   36   37   38   39