Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active January 6, 2018 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ibro/2c222c7de2b4ca201ac5b394059853d9 to your computer and use it in GitHub Desktop.
Save Ibro/2c222c7de2b4ca201ac5b394059853d9 to your computer and use it in GitHub Desktop.
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