Last active
August 29, 2015 14:11
-
-
Save neuecc/563b4a91ecc3249c3476 to your computer and use it in GitHub Desktop.
殺害コード.cs
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
public partial class MainWindow : Window | |
{ | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
} | |
async void MyVoidAsync1() | |
{ | |
await Task.Delay(TimeSpan.FromSeconds(1)).ConfigureAwait(false); | |
MyVoidAsync2(); | |
} | |
async void MyVoidAsync2() | |
{ | |
await Task.FromResult(0); | |
throw new Exception("ウィンドウごとしぬ"); | |
} | |
private async void button_Click(object sender, RoutedEventArgs e) | |
{ | |
MyVoidAsync1(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment