Convert to C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Miller

    Convert to C#

    Hello.

    I need to convert some small Java source to C#.
    Can anybody help me?

    =============== =============== =============== =============== =============== =============== ==
    private SocketChannel getNBConnSock(S ocketAddress local, SocketAddress
    remote, Selector sel) throws Exception {
    SocketChannel sock = SocketChannel.o pen();
    sock.socket().s etReuseAddress( true);
    if (local != null) sock.socket().b ind(local);
    sock.configureB locking(false);
    SelectionKey sockKey = sock.register(s el, SelectionKey.OP _CONNECT);
    sockKey.attach( this);
    sock.connect(re mote);
    return sock;
    }
    =============== =============== =============== =============== =============== =============== ==

    Thank you


  • bart_deboeck@hotmail.com

    #2
    Re: Convert to C#

    Hi Bob,

    Check the Microsoft Java Language Conversion Assistant.

    Succes,
    Bart



    Comment

    Working...