Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Last active August 29, 2015 14:13
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 ufcpp/23662ea0f509e5a1b7bb to your computer and use it in GitHub Desktop.
Save ufcpp/23662ea0f509e5a1b7bb to your computer and use it in GitHub Desktop.
C# 6.0 in VS 2015 CTP5
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