[Modify] Polish it

This commit is contained in:
sta 2021-02-07 22:15:40 +09:00
parent e029fa5c78
commit 82637a8b11

View File

@ -153,8 +153,11 @@ namespace WebSocketSharp.Net
byte[] buffer, int offset, int count, AsyncCallback callback, object state
)
{
if (_disposed)
throw new ObjectDisposedException (GetType ().ToString ());
if (_disposed) {
var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
if (buffer == null)
throw new ArgumentNullException ("buffer");