3

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

enzom83
  • 8,080
  • 10
  • 68
  • 114
  • possible duplicate of [Why does .NET use int instead of uint in certain classes?](http://stackoverflow.com/questions/782629/why-does-net-use-int-instead-of-uint-in-certain-classes) – dtb Feb 09 '12 at 00:55

1 Answers1

7

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?

Community
  • 1
  • 1
poupou
  • 43,413
  • 6
  • 77
  • 174