First Min Prototype : Min « LINQ « C# / C Sharp






First Min Prototype

 

using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;

public class MainClass {
    public static void Main() {
        int[] myInts = new int[] { 974, 2, 7, 1374, 27, 54 };
        int minInt = myInts.Min();
        Console.WriteLine(minInt);
    }
}

 








Related examples in the same category

1.Min with string value
2.Min with object property
3.Min with string property value
4.use Min to get the lowest number in an integer array.
5.uses Min to get the length of the shortest word in a string array.
6.Grouped Min