[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) public override int Read (byte[] buffer, int offset, int count)
{ {
if (_disposed) if (_disposed) {
throw new ObjectDisposedException (GetType ().ToString ()); var name = GetType ().ToString ();
throw new ObjectDisposedException (name);
}
if (buffer == null) if (buffer == null)
throw new ArgumentNullException ("buffer"); throw new ArgumentNullException ("buffer");