New Features in C# 8

For decades, we have seen the development of a wide variety of programming languages. Some are now almost dead, some are used by few companies, and others have remained dominant in the market for many years. C# belongs to the third category. The first version of C# was released in the year 2000. When C# was released, many people said that it was a clone of Java. Over time, however, C# became more mature and started dominating the market. This is especially the case for the Microsoft technology stack, where C# is undoubtedly the number one programming language. With every new release, Microsoft has introduced amazing features and made the language very powerful.

At the end of 2018, Microsoft announced some exciting features that will be available in C# 8. At the time of writing, C# 8 is still yet to be officially released, so I can't guarantee that all of these features will be available in the final release. But there is a very high chance that these features will be available in the final release. In this chapter, we will look at these features and try to understand how the language is evolving into an extraordinary programming language. Let's take a look at the features that we are going to discuss:

  • Nullable reference types
  • Async streams
  • Ranges and indices
  • Default implementation of interface members
  • Switch expressions
  • Target-typed new expressions
..................Content has been hidden....................

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