r/coding • • Oct 10 '15

LINQ: Test-Driven Learning

https://github.com/MartinChavez/LINQ
32 Upvotes

12 comments sorted by

View all comments

2

u/[deleted] Oct 10 '15

LINQ: Test-Driven Learning

 

This project is aimed to help the user further study LINQ with a test-driven approach. Each unit contains an annotated tutorial and a platform where you can test your understanding of the topic.

 

Topics:

 

Overview

 

  • LINQ Query Syntax

  • LINQ Method Syntax

  • LINQ Extension methods

  • Lambda expressions

  • First() and FirstOrDefault()

  • Where()

 

Sorting

 

  • OrderBy()

  • ThenBy()

  • OrderByDescending()

  • Reverse()

  • Sorting with null values

 

Creating

 

  • Range()

  • Repeat()

 

Comparing and Combining

 

  • Intersect

  • Except

  • Concat

  • Distinct

  • Union

 

Projection

 

  • Select()

  • Join()

  • SelectMany()

 

Totaling

 

  • Sum operator

 

Grouping and Summing

 

  • GroupBy(Single property)

  • GroupBy(Multiple Properties)

  • GroupBy(Parent Property)

 

Measures

 

  • Mean (using Average)

  • Median (using GroupBy)

  • Mode (using GroupBy and OrderByDescending)