Hi everybody!
I think I have a very simple problem which I couldn't find a solution. code I added gives an explicit conversation error. I used casting but it doesn't work. I appreciate for your help.

public class Client : System.Net.Sockets.TcpClient { }
    class Program
    {
        static void Main(string[] args)
        {
           Client t1 = (Client)new System.Net.Sockets.TcpClient();
        }
    }
System.Net.Sockets.TcpClient t1 = new Client();
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.