Convert unix epoch time to DateTime in C#

I recently had to convert unix epoch time to DateTime and like the rest of the world turned to stackoverflow. The top answer is a very simple solution of adding the unix time, which is in milliseconds, to a DateTime of 1/1/1970. Nothing wrong with that, but it turns out it was added into DateTimeOffset […]

String interpolation in C# 6

This is the eighth part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. (Now Visual Studio 2015 is available, they’re not so “upcoming”). This is another really nice piece of syntactic sugar that makes the code more readable and less error prone. Very simply, this appears to be […]

Null-conditional operators in C# 6

This is the seventh part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. (Now Visual Studio 2015 is available, they’re not so “upcoming”). I’m going to come straight out and say that this is my favourite new language feature in C# 6. It’s going to get used a […]

Expression-bodied members in C# 6

This is the sixth part of a series of posts I’m making into Upcoming Language Feature Changes in C# 6. (Now Visual Studio 2015 is available, they’re not so “upcoming”). Back to the syntactic sugar updates this time, but again, I think this will be used a lot once it gets out in the wild. […]

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 […]