Support us .Net Basics C# SQL ASP.NET Aarvi MVC Slides C# Programs Subscribe Download

Part 4 - LINQ Aggregate Functions





2 comments:

  1. what if we want country name with min length?

    ReplyDelete
  2. string a = countries.Aggregate((cur, min) => min.Length < cur.Length ? min : cur);
    Console.WriteLine(a);

    ReplyDelete

It would be great if you can help share these free resources