Category: Programming

This is one of a series of posts on some of the new features in C# 6.0, which was just released. When catching exceptions in code, you can have a different catch block for different types of exceptions: try { …

Exception filters Read More »

Tagged with: ,

This is one of a series of posts on some of the new features in C# 6.0, which was just released. Expression bodies let you use lambda-style expression declarations for methods and properties. So, instead of: public int Add(int x, …

Expression bodies on properties and methods Read More »

Tagged with: ,

This is one of a series of posts on some of the new features in C# 6.0, which was just released. I had to be careful about naming this one because just calling it “using static” implies a different topic! …

The “using static” statement Read More »

Tagged with: ,

This is one of a series of posts on some of the new features in C# 6.0, which was just released. Auto-properties were added some time ago. An auto-property lets you define a property without a backing field: public string …

Auto-property initializers Read More »

Tagged with: ,

This is one of a series of posts on some of the new features in C# 6.0, which was just released. Null-conditional member access is a great new feature that, I think, will help make code more bullet-proof and easier …

Null-conditional operator Read More »

Tagged with: ,

VS 2015 is now available for download from MSDN! Probably the biggest things about this release are the new Roslyn compiler and the fact that much of .NET is now officially open source! Aside from giving the .NET team a …

Visual Studio 2015, .NET 4.6, C# 6.0 Released Read More »

Tagged with: , ,