I have a Java code block like following:

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

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#?

Recommended Answers

You have to create a new thread. Example.

Jump to Post

All 2 Replies

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 learning and sharing knowledge.