Last active
August 29, 2015 14:13
-
-
Save ufcpp/23662ea0f509e5a1b7bb to your computer and use it in GitHub Desktop.
C# 6.0 in VS 2015 CTP5
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 static System.Console; // using → using static | |
class Program | |
{ | |
static void Main() | |
{ | |
var x = int.Parse(ReadLine()); | |
WriteLine($"{nameof(x)} = {x}"); // "\{x}" → $"{x}" | |
} | |
static int Test(int x) => x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment