提交 0a49cf46 编写于 作者: G Gonzalo Paniagua Javier

The EndPoint cannot be null

	The EndPoint argument in Begin/EndSendTo cannot be null.
上级 b24939c6
......@@ -908,6 +908,9 @@ namespace System.Net.Sockets
if (buffer == null)
throw new ArgumentNullException ("buffer");
if (remote_end == null)
throw new ArgumentNullException ("remote_end");
if (offset < 0)
throw new ArgumentOutOfRangeException ("offset", "offset must be >= 0");
......
......@@ -1765,6 +1765,9 @@ namespace System.Net.Sockets {
if (result == null)
throw new ArgumentNullException ("result");
if (end_point == null)
throw new ArgumentNullException ("remote_end");
SocketAsyncResult req = result as SocketAsyncResult;
if (req == null)
throw new ArgumentException ("Invalid IAsyncResult", "result");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册