Skip to content

Commit 2419e81

Browse files
ThomasArdalBillWagner
authored andcommitted
Formatting of try-catch (#903)
1 parent 9773afc commit 2419e81

File tree

1 file changed

+4
-2
lines changed
  • snippets/csharp/VS_Snippets_CLR_System/system.aggregateexception.class/cs

1 file changed

+4
-2
lines changed

snippets/csharp/VS_Snippets_CLR_System/system.aggregateexception.class/cs/exception1.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ static async Task Main(string[] args)
1717

1818
// Use this line to throw an exception that is not handled.
1919
// Task task1 = Task.Factory.StartNew(() => { throw new IndexOutOfRangeException(); } );
20-
try {
20+
try
21+
{
2122
await task1;
2223
}
23-
catch (AggregateException ae) {
24+
catch (AggregateException ae)
25+
{
2426
ae.Handle((x) =>
2527
{
2628
if (x is UnauthorizedAccessException) // This we know how to handle.

0 commit comments

Comments
 (0)