2 using System
.Threading
.Tasks
;
6 public static int Main ()
8 var t
= GetSomeStrings (null);
12 } catch (AggregateException e
) {
13 if (e
.InnerException
is NullReferenceException
)
20 public static async Task
<string> GetSomeStrings (AsyncStringFactory myFactory
)
22 var res
= await myFactory
?.GetSomeStringAsync ();
27 public class AsyncStringFactory
29 public async Task
<string> GetSomeStringAsync ()