Tags:.net

Tutorials

.net – LINQ – Min

viewed(1)

var numbers = new[] {1,2,3,4}; var minNumber = numbers.Min(); Console.WriteLine(minNumber); //1 var cities = new[] { new...

Tutorials

.net – LINQ – Single

viewed(1)

var oneNumber = new[] {5}; var theOnlyNumber = oneNumber.Single(); Console.WriteLine(theOnlyNumber); //5 var numbers = n...

Tutorials

.net – LINQ – ThenBy

viewed(1)

ThenBy can only be used after a OrderBy clause allowing to order using multiple criteria var persons = new[] { new {Id =...