Skip to content

Instantly share code, notes, and snippets.

@neuecc
Last active August 29, 2015 14:11
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 neuecc/563b4a91ecc3249c3476 to your computer and use it in GitHub Desktop.
Save neuecc/563b4a91ecc3249c3476 to your computer and use it in GitHub Desktop.
殺害コード.cs
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