Skip to content

Commit

Permalink
Seal nested classes (#54196)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl authored Jun 15, 2021
1 parent c28b189 commit dfcaf41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private static bool IsFactory<TReturn>(MethodInfo? factory)
return (IServiceProvider?)servicesProperty?.GetValue(host);
}

private class HostingListener : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>>
private sealed class HostingListener : IObserver<DiagnosticListener>, IObserver<KeyValuePair<string, object?>>
{
private readonly string[] _args;
private readonly MethodInfo _entryPoint;
Expand Down Expand Up @@ -321,7 +321,7 @@ public void OnNext(KeyValuePair<string, object?> value)
}
}

private class StopTheHostException : Exception
private sealed class StopTheHostException : Exception
{

}
Expand Down

0 comments on commit dfcaf41

Please sign in to comment.