Guest User

Untitled

a guest
Jan 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System.Threading.Tasks;
  2.  
  3. namespace ConsoleApplication5AsyncCtp
  4. {
  5. internal class Program
  6. {
  7. private static void Main(string[] args)
  8. {
  9. }
  10.  
  11. public async Task<int> GetValue()
  12. {
  13. await TaskEx.Delay(100);
  14. return 13; // Return type is "int", not "Task<int>"
  15. }
  16. }
  17. }
  18.  
  19. Program.cs(15,32): error CS1003: Syntax error, '(' expected
  20. Program.cs(15,40): error CS1001: Identifier expected
  21. Program.cs(17,32): error CS1031: Type expected
  22. Program.cs(21,1): error CS1022: Type or namespace definition, or end-of-file expected
Add Comment
Please, Sign In to add comment