• Home
  • Blog
  • About me
  • Courses
  • Articles
  • Talks
  • Books
  • Contact
  • Home
  • Blog
  • About me
  • Courses
  • Articles
  • Talks
  • Books
  • Contact
25FebFebruary 25, 2021

C# 9.0: Pattern Matching in Switch Expressions

Thomas Claudius Huber2021-02-25T16:33:33+01:00

In the previous blog posts about C# 9.0 you learned about different features:

  • Top-level statements
  • Init-only properties
  • Records
  • Target-typed new expressions
  • Improved Pattern Matching

In this blog post, let's look at C# 9.0 pattern matching in switch expressions.

(more…)
By Thomas Claudius Huber.NET, C#0 Comments
Read more...
18FebFebruary 18, 2021

C# 9.0: Improved Pattern Matching

Thomas Claudius Huber2021-02-25T15:54:49+01:00

In the previous blog posts about C# 9.0 you learned about different features:

  • Top-level statements
  • Init-only properties
  • Records
  • Target-typed new expressions

In this blog post, let's look at another feature of C# 9.0, the improved pattern matching.

(more…)
By Thomas Claudius Huber.NET, C#4 Comments
Read more...
06FebFebruary 6, 2021

Configure Naming Styles and Rules in Visual Studio and also at the solution/project level with an .editorconfig file

Thomas Claudius Huber2021-02-06T19:33:08+01:00

When it comes to naming fields in classes, there are three types of .NET developers (The truth is there are even more, but let's focus on the three that I see most often). :-)

(more…)
By Thomas Claudius Huber.NET, C#, Visual Studio0 Comments
Read more...
08SepSeptember 8, 2020

C# 9.0: Target-typed New Expressions – Make Your Initialization Code Less Verbose

Thomas Claudius Huber2021-02-18T10:05:04+01:00

In the previous blog posts you learned about different C# 9.0 features:

  • Top-level statements
  • Init-only properties
  • Records

In this blog post, let's look at another very interesting feature of C# 9.0 that is called target-typed new expressions.

(more…)
By Thomas Claudius Huber.NET, C#24 Comments
Read more...
01SepSeptember 1, 2020

C# 9.0: Records – Work With Immutable Data Classes

Thomas Claudius Huber2020-09-01T19:13:02+01:00

In the previous blog posts you learned about different C# 9.0 features:

  • Top-level statements
  • Init-only properties

In this blog post, let's look at another very interesting feature of C# 9.0 that is called record types or just records.

(more…)
By Thomas Claudius Huber.NET, C#9 Comments
Read more...
25AugAugust 25, 2020

C# 9.0: Init-only Properties – Create Immutable Properties Without Constructor Boilerplate

Thomas Claudius Huber2020-08-23T09:08:22+01:00

In the previous blog post you learned about C# 9.0 top-level statements. In this blog post you learn about another C# 9.0 feature that is called init-only properties.

(more…)
By Thomas Claudius Huber.NET, C#2 Comments
Read more...
18AugAugust 18, 2020

C# 9.0: Top-level Statements. Or Should I Say: Hey, Where’s the Main Method?

Thomas Claudius Huber2020-08-25T15:40:02+01:00

C# 9.0 introduces many new language features, and with this blog post I start a little series to look at some of those new features. Let's start in this post with top-level statements.

(more…)
By Thomas Claudius Huber.NET, C#35 Comments
Read more...
19MarMarch 19, 2020

C#: Why You Should Prefer the is Keyword Over the == Operator

Thomas Claudius Huber2020-03-19T22:34:58+01:00

In the previous blog post you learned about different ways to do a null check. The traditional way is to use the == operator:

(more…)
By Thomas Claudius Huber.NET, C#9 Comments
Read more...
12MarMarch 12, 2020

C#: Different ways to Check for Null

Thomas Claudius Huber2020-08-29T11:12:57+01:00

What is the classic way to check if for example a parameter value is null? If you've developed with C# since a while, you might be familiar with this classic syntax:

(more…)
By Thomas Claudius Huber.NET, C#19 Comments
Read more...
05MarMarch 5, 2020

C#: The Order of Interfaces Is Important for Casting Performance

Thomas Claudius Huber2020-03-02T15:03:14+01:00

Recently there was a discussion in a Pull Request for the .NET runtime on GitHub. In the discussion it was mentioned by Jan Kotas from Microsoft that the order of interfaces is important for the casting performance.

(more…)
By Thomas Claudius Huber.NET, C#6 Comments
Read more...
123Next  

Follow me

Twitter
Pluralsight course
Fundamentals of Building .NET Desktop Applications
Pluralsight course
Test Driven Development in
C#
Pluralsight course
XAML: Getting Started
Pluralsight course
Using Git for Source Control in Visual Studio 2019
All my Pluralsight courses

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Blogs I read

  • .NET Blog
  • Ela Mościcka
  • Brock Allen
  • Dominick Baier
  • Laurent Bugnion
  • Manuel Meyer
  • Philipp Salvisberg
  • René Schulte
  • Roger Troller
  • Scott Hanselman

Tags

.NET ASP.NET Azure Blazor Books C# Career Conferences Courses Entity Framework Git HTML JavaScript MSIX Music MVP MVVM Pluralsight Silverlight Surface TDD TypeScript Unit Testing UWP Visual Studio Web Components Windows Windows Forms WinUI WPF Xamarin XAML XML

Blog RSS Feed

  • RSS - Posts
© Copyright 2021 - Thomas Claudius Huber