简体   繁体   中英

Why does IPEndPoint take an Int64 and an Int32 as parameters?

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

Unsigned integers are not CLS compliant . As such many languages does not support them and they are avoided, whenever possible, in the .NET base class libraries (BCL).

See also: Why are unsigned int's not CLS compliant?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM