Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么IPEndPoint采用Int64和Int32作为参数?_C#_.net - Fatal编程技术网

C# 为什么IPEndPoint采用Int64和Int32作为参数?

C# 为什么IPEndPoint采用Int64和Int32作为参数?,c#,.net,C#,.net,为什么不选择使用UInt32(用于IP)和UInt16(用于端口)?不使用无符号整数。由于许多语言都不支持它们,因此只要有可能,.NET基类库(BCL)都会避免使用它们 另请参见:可能的副本

为什么不选择使用UInt32(用于IP)和UInt16(用于端口)?

不使用无符号整数。由于许多语言都不支持它们,因此只要有可能,.NET基类库(BCL)都会避免使用它们

另请参见:

可能的副本