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
private object _queuedReadStateRequest;
/// <summary>Set as the _exception when the instance is disposed.</summary>
- private static readonly ExceptionDispatchInfo s_disposedSentinel = ExceptionDispatchInfo.Capture(new ObjectDisposedException(nameof(SslStream)));
+ private static readonly ExceptionDispatchInfo s_disposedSentinel = ExceptionDispatchInfo.Capture(new ObjectDisposedException(nameof(SslStream), (string)null));
private void ThrowIfExceptional()
{