瀏覽代碼

Socket.AddSockets throw exception with meaningful name (#4086)

fix #48875
su21 9 年之前
父節點
當前提交
53fa02470c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mcs/class/System/System.Net.Sockets/Socket.cs

+ 1 - 1
mcs/class/System/System.Net.Sockets/Socket.cs

@@ -458,7 +458,7 @@ namespace System.Net.Sockets
 			if (list != null) {
 				foreach (Socket sock in list) {
 					if (sock == null) // MS throws a NullRef
-						throw new ArgumentNullException ("name", "Contains a null element");
+						throw new ArgumentNullException (name, "Contains a null element");
 					sockets.Add (sock);
 				}
 			}