Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateHandle()

static SafeSocketHandle System.Net.Sockets.Socket.ValidateHandle ( SafeSocketHandle handle)
inlinestaticprivate

Definition at line 1146 of file Socket.cs.

1147 {
1148 if (handle != null)
1149 {
1150 if (!handle.IsInvalid)
1151 {
1152 return handle;
1153 }
1154 throw new ArgumentException(System.SR.Arg_InvalidHandle, "handle");
1155 }
1156 throw new ArgumentNullException("handle");
1157 }
static string Arg_InvalidHandle
Definition SR.cs:14
Definition SR.cs:7

References System.SR.Arg_InvalidHandle, and System.handle.