News for hackers. Stuff that matters.
Re:What's New in C# 6.0 [video] by towelguy on Saturday November 15, 2014 @11:08AM (#8611933)
For the second one you can write this:

    public int Y => 5;
Re:What's New in C# 6.0 [video] by louthy on Saturday November 15, 2014 @11:19AM (#8611958)
It isn't the same. With immutable properties the constructor can change the value of Y based on its own decision logic. So 5 is just a default and the constructor may change it. That allows for multiple constructors, some that set the value some that don't.

If the value is always going to be 5, then use a const.