Course info
Sep 20, 2014
1h 43m

C# 6 introduces new syntax features for primary constructors, exception filtering, static class usage, and more. We'll examine each of these language features in detail, and also look at the area where Microsoft worked the hardest: the compiler itself. Code-named Roslyn, the new compiler comes with an architecture that makes it easier to build tools and extensions for both the C# and Visual Basic languages.

About the author
About the author

Scott has over 15 years of experience in commercial software development and is a frequent speaker at national conferences, and local user groups. Scott is a Microsoft MVP and has authored books on several Microsoft technologies, including ASP.NET, C#, and Windows Workflow.

More from the author
C# Fundamentals
6h 5m
Apr 16, 2019
More courses by Scott Allen
Section Introduction Transcripts
Section Introduction Transcripts

Hi this is Scott Allen and this course covers the new features for version 6 of the C# language. This release is an interesting release for C# because most of the effort has been behind the scenes in the compiler architecture itself, but there are also new language features. In this course we'll focus on the new language features, but also take a look at some of the benefits of the new C# compiler, code name Roslyn. The first module of the course will give you an overview of the topics we're going to cover together and show you how to get started.

Language Features Part I
Hi this is Scott Allen and this is first of two modules where I will cover new language features for C# 6. In this module, we'll focus on the features that revolve around properties, parameters, variables, constructors, and initialization. Let's get started right away by looking at a new feature we call auto property initialization.

Language Features Part 2
Hi this is Scott Allen and this module will continue looking at some of the new features for C# version 6, specifically features that tend to revolve around exceptions and null values, but also some new shortcut syntax where(_____) declaring variables and defining methods and invoking static methods. We'll get started looking at a feature known as the declaration expression.

Hi this is Scott and this module is an overview of Microsoft's open source compiler as a platform, code named Roslyn. What Microsoft has done with Roslyn is unique. Instead of the compiler being a black box where you pass in source code and then the compiler spits out a binary file as output, Roslyn provides APIs we can consume to work with C# of Visual Basic code. We can compile code, look at the syntax trees, inspect the symbols, emit assemblies, even rewrite code, and all of the primary features and stages of the compiler are available through an API. I want to give you a brief tour of the capabilities and possibilities that Roslyn brings to the world of. NET development. Let's get started by looking at how to use Roslyn at a low level.