I have a Java code block like following:

public TcpConnection(TcpSocket socket, long alive_time, ITcpConnectionListener listener)
   {  init(socket,alive_time,listener);
      start();
   }

For the conversion in C#, When I try to replace the start() method with System.Threading.ThreadStart(), it gives an error. How can I start a thread in C#?

good job!good luck to you

You have to create a new thread. Example.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.