Async method calling without await

CSharp · Console

/Program.cs

using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
					
public class Program
{
	public static void Main()
	{		
		var result = new AsyncDemo().TestMethod1().Result;
		Console.WriteLine(result);
	}
}

public class AsyncDemo {
	
	public async Task<string> TestMethod1()
	{
		Thread.Sleep(1000);
		return  "From Async Method";
		
	}
}
;