enzom83
enzom83

Reputation: 8320

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

Why not have chosen to use an UInt32 (for the IP) and an UInt16 (for the port)?

Upvotes: 3

Views: 122

Answers (1)

poupou
poupou

Reputation: 43553

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?

Upvotes: 7

Related Questions