[Modify] Polish it

This commit is contained in:
sta 2021-02-08 21:35:17 +09:00
parent 82637a8b11
commit 3a5d4a03f0

View File

@ -252,8 +252,11 @@ namespace WebSocketSharp.Net
public override int Read (byte[] buffer, int offset, int count)
{
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_disposed) {
var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
if (buffer == null)
throw new ArgumentNullException ("buffer");