Exemplo n.º 1
0
        // try-catch (C# Reference)
        public static async Task Examples()
        {
            var examples = new AsyncExceptionExamples();
            await examples.DoSomethingAsync();

            await examples.DoMultipleAsync();
        }
Exemplo n.º 2
0
 static async Task Main(string[] args)
 {
     Console.WriteLine("=================    Generic Where Constraints Examples ======================");
     GenericWhereConstraints.Examples();
     Console.WriteLine("=================    Fixed Memory Examples ======================");
     FixedKeywordExamples.Examples();
     Console.WriteLine("=================    readonly Keyword Examples ======================");
     ReadonlyKeywordExamples.Examples();
     Console.WriteLine("=================    using Keyword Examples ======================");
     UsingStatements.Examples();
     Console.WriteLine("=================    try-catch Keyword Examples ======================");
     await AsyncExceptionExamples.Examples();
 }