// try-catch (C# Reference) public static async Task Examples() { var examples = new AsyncExceptionExamples(); await examples.DoSomethingAsync(); await examples.DoMultipleAsync(); }
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(); }