Avoid loading resources for an SslStream exception never thrown (dotnet/corefx#39414)
authorStephen Toub <stoub@microsoft.com>
Fri, 12 Jul 2019 00:28:09 +0000 (20:28 -0400)
committerGitHub <noreply@github.com>
Fri, 12 Jul 2019 00:28:09 +0000 (20:28 -0400)
commitd646cc5697802fc06b62e33e50a8aa01bccc51ed
tree2399e237714514195e99db56319bf32b582b1a21
parent9314158563d6538bdb0dc51137125868663ac997
Avoid loading resources for an SslStream exception never thrown (dotnet/corefx#39414)

SslStream's cctor creates an ObjectDisposedException it uses as a sentinel, but this instance is never actually thrown.  As such, we don't need to pay to load resources for it.

Commit migrated from https://github.com/dotnet/corefx/commit/7055a28952ce82e79f93519a68025dc884545645
src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs