Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. class client {
  2.   transport t;
  3.   async Task connect() {
  4.     try { await t.connect(); }
  5.     catch (TestException) {}
  6.   }
  7. }
  8.  
  9. class transport {
  10.   async Task connect() { throw new TestException(); }
  11. }
  12.  
  13. await (new client()).connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement