这个问题在这里已有答案:
Argument type is not CLS-compliant, why? 3个答案
Why should I use int instead of a byte or short in C# 7个答案
我目前正在使用System.Net.Sockets中的TcpClient类,我想知道为什么端口是int32,因为实际端口范围从0到65535(ushort) .