Chapter 1. New Features in C# 6.0

In this chapter, we will cover the following recipes with regard to the new features of C# 6.0:

  • Creating your Visual Studio project
  • String interpolation
  • Null-conditional operator
  • Initializers for auto-implemented properties and getter-only auto properties
  • Index initializers
  • The nameof expressions
  • Expression-bodied functions and properties
  • Using static
  • Exception filters
  • Using await operator in catch and finally blocks

Introduction

C# as a programming language first appeared in 2000. Its development team is led by the prominent Danish software engineer Anders Hejlsberg. He is the lead architect of C# and core developer of TypeScript. The C# programming language is simple to use, and this book will deal with C# 6.0, which was released on 20 July, 2015.

Knowing what new language features are available in C# 6.0 will not only make you a more effective developer, but will also allow you to implement the latest and best practices in the software that you create. A little-known fact is that C# was actually called C-like Object Oriented Language (Cool) before its release at Microsoft's Professional Developers Conference in July 2000, but was changed to C# at the time of its release.

The name might have changed, but C# remains a very cool language to learn and use. This chapter will take you through the new features of C# 6.0 and illustrate how to effectively use these features in you daily programming tasks.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.255.87