Switched to 2015 yesterday and I have to say, I love the new coding improvements in C#.
The new Auto Property Expression body is great. I have to say code just looks a lot simpler this way.
private string _myString = "Some String";
public string MyString
{
get { return _myString; }
set { _myString = value; }
}
Turns into
public string MyString { get; set; } = "Some String";
My "mostest" favorite is the new null propagation. I'm constantly using this feature.
if (myObject != null)
myObject.DoSomething()
Turns into
For those of you who haven't switched. These two features alone are worth switching. I had thought these new features were only going to be in .NET 6 but these new feature are compiler (Roslyn) features that work in .NET 4.5 and .NET 4.5.1. I don't have anything older than that to test it on but I don't see why they wouldn't work on older versions too.