Avoid OnAfterRender allocating to capture 'this'

This commit is contained in:
Steve Sanderson 2018-10-05 13:39:11 +01:00
parent d414ed107f
commit 7012ea9d03
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ namespace Microsoft.AspNetCore.Blazor.Components
}
}
private void HandleException(Exception ex)
private static void HandleException(Exception ex)
{
if (ex is AggregateException && ex.InnerException != null)
{