C# 7.1 New Features - https://codingblast.com/csharp-7-1-new-features/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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