Skip to content

Instantly share code, notes, and snippets.

@Ibro

Ibro/CSharp71.cs

Last active Jan 6, 2018
Embed
What would you like to do?
using System.Collections.Generic;
using System.Linq;
namespace CSharp71Features
{
class Program
{
static void Main(string[] args)
{
var numbers = new List<int> { 33, 15, 14 };
int lowest = numbers.Min(n => n);
int highest = numbers.Max(n => n);
var result = (lowest, highest);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment