http://stackoverflow.com/questions/3095805/uint-vs-int-in-c
http://stackoverflow.com/questions/5022303/why-does-c-include-programming-constructs-that-are-not-cls-compliant
On Tue, May 10, 2011 at 10:13 AM, Tom Rutter wrote:
> I often see methods which take an int arg and the first thing they do
While your code is free to do whatever you want, in the Framework we try to use
int instead of uint due to CLS compliant rules.
CLS compliance is basically a minimum set of rules that a language must follow
to play nicely with other the runtime and .NET languages. Unsigned integers are
not requ
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 di