Many Linq Features That we can do with an Array

These are few functions that LINQ gives us to work with an array object.

You can get the Min,Max,Sum and many more.


Dim nums() As Integer = {2, 3, 4, 44, 2, 774, 4, 5, 77, 6, 7, 4, 66, 3, 44, 4, 45, 34, 5, 5}

Console.WriteLine("The Sum is : " & nums.Sum())
Console.WriteLine("The Min is : " & nums.Min())
Console.WriteLine("The Max is : " & nums.Max())


Download Sample.

Regards Hefin Dsouza


Attachments

  • Attatchment (21382-201113-LInqFeatures.rar)
  • Comments

    No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: