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
)
1078
Debug.Assert(acceptedSocketHandle.
IsInvalid
);
1089
Debug.Assert(!acceptedSocketHandle.
IsInvalid
);
3561
if (Disposed || _handle.
IsInvalid
)
3618
if (silent && (Disposed || _handle.
IsInvalid
))
3631
if (silent && _handle.
IsInvalid
)
3797
Debug.Assert(fd != null && !fd.
IsInvalid
);
3945
if (disconnectOnFailure && _isConnected && (_handle.
IsInvalid
|| (errorCode != SocketError.WouldBlock &&
System\Net\Sockets\SocketPal.Unix.cs (1)
97
if (socket.
IsInvalid
)