[Modify] Polish it
This commit is contained in:
parent
82a214129b
commit
aaf9ab8495
@ -125,8 +125,11 @@ namespace WebSocketSharp.Net
|
|||||||
if (buffer == null)
|
if (buffer == null)
|
||||||
throw new ArgumentNullException ("buffer");
|
throw new ArgumentNullException ("buffer");
|
||||||
|
|
||||||
if (offset < 0)
|
if (offset < 0) {
|
||||||
throw new ArgumentOutOfRangeException ("offset", "A negative value.");
|
var msg = "A negative value.";
|
||||||
|
|
||||||
|
throw new ArgumentOutOfRangeException ("offset", msg);
|
||||||
|
}
|
||||||
|
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
throw new ArgumentOutOfRangeException ("count", "A negative value.");
|
throw new ArgumentOutOfRangeException ("count", "A negative value.");
|
||||||
|
Loading…
Reference in New Issue
Block a user