I often see methods which take an int arg and the first thing they do is
check if the int is non negative and then throw exception if it is. Would
using a uint be better as the type checking would automatically get handled
at compile time?
Does it depend on if its a public api?I heard once fxcop didn't like uints
in public apis but it's not complaining for me now.

Any thoughts on this?

Reply via email to