static void Main(string[] args) { AsyncTest obj = new AsyncTest(); // Part 1 : Introduction // Depicting Task.Run(). // Sync and async ways of reading and writing to a file. obj.Task1(10); // Part 2 : Obtaining the results from an asynchronous operation obj.Task2(10); }
public AsyncTestDriver() { _test = new AsyncTest(); }