Example #1
0
 public static bool IsConnected(this ISocket socket)
 {
     if (socket is SocketWrapped socketWrapped)
     {
         return(socketWrapped.InternalSocket.IsConnected());
     }
     else if (socket is System.Net.Sockets.Socket socket2)
     {
         return(socket2.IsConnected());
     }
     else
     {
         return(DebugUtils.BreakReturn(false));
     }
 }
Example #2
0
 public static bool HasDynamicMember(this object obj, string name)
 {
     return(DebugUtils.BreakReturn <bool>(false));
 }