Visual Studio
Welcome to the 17th day of the
<a href="https://crosscuttingconcerns.com/The-First-C-Advent-Calendar" target='_blank'>C# Advent Calendar</a>
. Iād like to take a moment to thank my fellow bloggers who are sharing their passion of C# with everyone following the C# Advent Calendar. Please, share this and their posts - help us all make C# even more widely adopted than it is today.
In the Beginning
I’m honored to blog about my favorite programming language, C#. There is an often forgotten truth about the history of C#, one truth that I like talking about. While C# is a really “cool” language with awesome features it was actually named “Cool” in the beginning!
Intro
At my day job, I wear many hats. I’m currently wearing the “upgrade our team’s tooling” hat. I counted 99 *.xproj and project.json based projects spanning four repositories that need to be updated to the revitalized *.csproj project format. With this the team can upgrade to the latest version of Visual Studio (finally upgrading to 2017 from 2015) and start taking advantage of the following:
Earlier this year in March – Visual Studio 2017 was released. With this the world was given C# 7, checkout my post on Exploring C# 7. In this post we will peruse C# 7.1, the first incremental release while C# 8 is being fleshed out.
Async Main
Since the release of C# 5, developers have either embraced the async and await keywords or fumbled along the way feebly attempting to comprehend them. Fear not, you’re not alone. Many others have been just as confused, but that’s not to say that the language didn’t make major strides towards simplifying your development efforts. In fact, I love asynchronous programming and C# makes me very happy with its implementation!
Intro
Since we have all been actively celebrating the 20th anniversary of Visual Studio, it felt appropriate to post about C# 7!
In this post we will explore the features that make C# 7 so promising. I’ve put together a demonstration C# 7 project, that is available
<a href="https://github.com/IEvangelist/IEvangelist.CSharp" target='_blank'>here</a>
.
This post contains examples and details on five of the nine new C# 7 features.
- Pattern matching
out variables
- Tuples
- Local functions
throw expressions
These are the remaining features, that I do not cover in this post.