private Socket GetSocket(CouchbasePooledSocket socket) { var info = typeof(CouchbasePooledSocket).GetField("_socket", BindingFlags.NonPublic | BindingFlags.Instance); return(info.GetValue(socket) as Socket); }
private Socket GetSocket(CouchbasePooledSocket socket) { var info = typeof(CouchbasePooledSocket).GetField("_socket", BindingFlags.NonPublic | BindingFlags.Instance); return info.GetValue(socket) as Socket; }