Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

list min and Max value in c#

			var list = new List<int> { 1, 2, 3, 4, 5, 6, 7, 16, 17 };  
            // MAX  
            Console.WriteLine("MAX=>" + list.Max(z => z));  
            // MIN  
            Console.WriteLine("MIN=>" + list.Min(z => z));
Source by www.c-sharpcorner.com #
 
PREVIOUS NEXT
Tagged: #list #min #Max
ADD COMMENT
Topic
Name
7+5 =