Await in catch and finally blocks in C# 6

This is the fifth part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. This is definitely not syntactic sugar and if you’re doing any asynchronous programming you’ll be very pleased with this new feature. I was toying with not posting about it as the name is very descriptive […]

Exception filters in C# 6

This is the fourth part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. I must admit, I didn’t initially understand the fuss with exception filters. I saw a few tweets from along the lines of “finally, C# gets exception filters like VB.NET and F#” but didn’t understand the […]

Index Initializers in C# 6

This is the third part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. This is another syntactic sugar feature, this time making initializing objects with indexers more elegant. Most of the examples I’ve seen are using it on Dictionary<Tkey, Tvalue>, for example: Not a massive change and I […]

Static Members in C# 6

This is the second part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. This feature definitely fits in the syntactic sugar category and will should result in less typing as it allows you to drop the class prefix from any static members. For example, by changing “using System.Math” […]

Auto-Property Changes in C# 6

This is the first part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. In this post, I’m looking at the Auto-Property changes in C# 6. It’s probably going to be one of the larger posts as it covers 3 new language features: Auto-property Initializers Getter-only Auto-Properties Constructor assignment […]