好的,这可能会令人头疼,但为什么这段代码不起作用?
Dim tcplistener As New System.Net.Sockets.TcpListener
这不会与错误“ Overload resolution failed because no accessible 'New' accepts this number of arguments.
”一起编译
问题是,我必须将其声明为New
因为否则我会得到一个空引用异常......
有人知道我做错了什么,或者应该做不同的事情吗?
谢谢!