Join Reynald Adolphe for an in-depth discussion in this video Previously introduced, part of C# 7 First Look.
- [Narrator] C# has involved quite a bit over the past few years, and what I would like to do is go over some of the features that came out in each version. Some that I particularly thought were my favorites, but the other reason I want to go over them is because it's going to be a good refresher. As a programmer you don't use all these features every single day, but it's good to kind of have them in the back of your mind so that when you are coding you know that you can actually use some of these instead of going a long about way to writing something when it could've actually been done a little bit more efficiently, leveraging some of these features.
So starting with version two, I definitely was a big fan of generics and anonymous methods, and the getters and setters. But when version three came about auto-implemented properties were one of the things that I really liked about it, along with anonymous type and extension methods and query expressions were also one of my favorite features for that year. In 2010 version four C# came about that wasn't a huge year for me but I did appreciate the named and optional arguments.
And in 2012 version five came about and Async and await feature came out that was my favorite and definitely a big deal that year. For version six of C# a lot of new and impressive features came out and I actually did a whole course about it so definitely feel free to checkout C# six first look and checkout some of these incredible features, especially expression-bodied function members, because in version seven we actually expand on that but there are also other features that year that came out in 2015.
But this year for C# seven we are going to be covering all these features so without any further ado let's go ahead and jump right into it.
- Literals, separators, and local functions
- Is expressions with patterns
- Switch statements with patterns
- Ref returns
- Out variables
- Async return types and expressions
- Throw expressions