Base:
13 references to IsInvalid
System.Net.Sockets (13)
System\Net\Sockets\SafeSocketHandle.cs (2)
99
bool shouldClose = !
IsInvalid
&& TryOwnClose();
177
if (
IsInvalid
)
System\Net\Sockets\Socket.cs (10)
89
Debug.Assert(_handle.
IsInvalid
);
95
Debug.Assert(!_handle.
IsInvalid
);
242
if (handle.
IsInvalid
)
1079
Debug.Assert(acceptedSocketHandle.
IsInvalid
);
1090
Debug.Assert(!acceptedSocketHandle.
IsInvalid
);
3562
if (Disposed || _handle.
IsInvalid
)
3619
if (silent && (Disposed || _handle.
IsInvalid
))
3632
if (silent && _handle.
IsInvalid
)
3798
Debug.Assert(fd != null && !fd.
IsInvalid
);
3946
if (disconnectOnFailure && _isConnected && (_handle.
IsInvalid
|| (errorCode != SocketError.WouldBlock &&
System\Net\Sockets\SocketPal.Unix.cs (1)
97
if (socket.
IsInvalid
)