Professional C# 6 and .NET Core 1.0

Professional C# 6 and .NET Core 1.0 is a huge book now already in its 10th edition covering C# 6.0, .NET Core, Windows Presentation Foundation (WPF), ASP.NET Core, and more.
The book not only covers C# syntax, but also both the traditional .NET Framework as well as the new multi-platform open-source framework .NET Core. Creating client applications is covered with several chapters about WPF and the Universal Windows Platform. You can also read Web applications and Web services with ASP.NET Core 1.0, ASP.NET Core MVC, ASP.NET Web API, as well as SignalR and WebHooks. Don’t expect to read anything about ASP.NET Web Forms in this book. For ASP.NET Web Forms you need to read an older edition of this book, e.g. Professional C# 5 and .NET 4.5.1. The new edition has a focus on new technologies that you use creating new applications and services.

Professional C# 6

More details about Professional C# 6

The book covers the syntax of C#, including the C# 6 syntax extensions such as

  • static using
  • expression bodied methods
  • expression bodied properties
  • auto implemented property initializers
  • read-only auto properties
  • nameof operator
  • null propagation operator
  • string interpolation
  • dictionary initializers
  • exception filters
  • await in catch

Of course all the older features of C# are covered as well. With the framework chapters I’ve made sure the code runs both with the .NET Framework as well as .NET Core. This resulted in several changes, e.g. with collections.

You can read features of Visual Studio 2015, the .NET Compiler Platform (Roslyn), unit testing, diagnostics and application insights, tasks and parallel programming, synchronization, files and streams, security, networking, localization, XML and JSON, and more.

Creating client applications, the book covers Windows Presentation Foundation (WPF) and the Universal Windows Platform (UWP). You can read 8 chapters about these technologies (and other chapters include WPF and UWP samples as well).

For Web applications and services, the ASP.NET Core chapter introduces ASP.NET Core 1.0. A technology you should definitely check to use it with your Web applications. This technology not only has the advantage that you can run it not only on Windows systems, but also on different Linux distributions as well as OS X. This might not be an issue for you. Compared to previous ASP.NET versions, the code made it through a major cleanup for high performance. You should consider this technology for new projects and probably existing projects in the long term.

More details on what’s in the book:

Book Updates

I’ve written the book with .NET Core RC1. With the release of .NET Core 1.0, only small changes with the code occurred. With project files some more changes occurred. As I find issues, I’m documenting them with the book updates – including new screenshots for Visual Studio:

Book Updates

With Visual Studio, the project files changed completely to csproj. In the next few weeks you can download two extra chapters as PDF files for C# 7.0 updates and updates with the new project file.

Source Code

The source code for the book including updates is available on GitHub.

Additional samples are available as well: Additional Samples

Enjoy the book!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.