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
AttachmentsAttatchment (21382-201113-LInqFeatures.rar)
|
No responses found. Be the first to respond and make money from revenue sharing program.
|