You're very much correct, I should of tested the snippet in .Net Fiddle before posting it. I wrote is as pseudo code, but can see how it could be misinterpreted. I've updated the example with one that actually works. Although the Integer class is a very boring example!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.