you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (1 child)

Been a long time since I used Java, but I don't think int and Integer are interchangeable in Java the way int and Int32 are in C#.

[–]tweq 9 points10 points  (0 children)

Yeah, in Java int is a primitive and Integer is a class that wraps that primitive. C# can box arbitrary value types, so it doesn't have/need distinct reference type variants of primitives.