未验证 提交 dfcaf417 编写于 作者: D David Fowler 提交者: GitHub

Seal nested classes (#54196)

上级 c28b1897
...@@ -169,7 +169,7 @@ private static bool IsFactory<TReturn>(MethodInfo? factory) ...@@ -169,7 +169,7 @@ private static bool IsFactory<TReturn>(MethodInfo? factory)
return (IServiceProvider?)servicesProperty?.GetValue(host); 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 string[] _args;
private readonly MethodInfo _entryPoint; private readonly MethodInfo _entryPoint;
...@@ -321,7 +321,7 @@ public void OnNext(KeyValuePair<string, object?> value) ...@@ -321,7 +321,7 @@ public void OnNext(KeyValuePair<string, object?> value)
} }
} }
private class StopTheHostException : Exception private sealed class StopTheHostException : Exception
{ {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册