Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Threading.Tasks;
- namespace ConsoleApplication5AsyncCtp
- {
- internal class Program
- {
- private static void Main(string[] args)
- {
- }
- public async Task<int> GetValue()
- {
- await TaskEx.Delay(100);
- return 13; // Return type is "int", not "Task<int>"
- }
- }
- }
- Program.cs(15,32): error CS1003: Syntax error, '(' expected
- Program.cs(15,40): error CS1001: Identifier expected
- Program.cs(17,32): error CS1031: Type expected
- Program.cs(21,1): error CS1022: Type or namespace definition, or end-of-file expected
Add Comment
Please, Sign In to add comment