Created
July 20, 2015 17:39
-
-
Save richlander/72dee9115bf443ee6490 to your computer and use it in GitHub Desktop.
Example of supported C# syntax for EnC in Visual Studio 2015
This file contains hidden or 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
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