ViIvanov

Untitled

Feb 10th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. abstract class MyClass
  2. {
  3.   public async Task<int> Method1Async() {
  4.     return await Method1CoreAsync();
  5.   }
  6.  
  7.   protected abstract Task<int> Method1CoreAsync();
  8.   // or
  9.   // protected abstract Task<int> Method1AsyncCore();
  10.   // or
  11.   // protected abstract Task<int> Method1Core();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment