Skip to content

Instantly share code, notes, and snippets.

@richlander
Created July 20, 2015 17:39
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 richlander/72dee9115bf443ee6490 to your computer and use it in GitHub Desktop.
Save richlander/72dee9115bf443ee6490 to your computer and use it in GitHub Desktop.
Example of supported C# syntax for EnC in Visual Studio 2015
public MainWindow()
{
InitializeComponent();
Loaded += async (o, e) => {
await Task.Delay(1000);
_strings = new string[] { "EnC now supports more features!", "Thanks to Roslyn!"};
label.Content = (from str in _strings
where str.StartsWith("Enc")
select str).FirstOrDefault();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment