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 <[email protected]> wrote: > 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?
