Quantcast
Channel: CSharp – csharp.christiannagel.com
Browsing all 21 articles
Browse latest View live

Slides and Source Code for Thrive Conference in Ljubljana, 2018

Slides and source code for my C# 7 & 8 and Blazor sessions at the thrive conference in Ljubljana

View Article


Slide and Source Code for BASTA! Frankfurt, 2019

I had some great days at BASTA! Spring in Frankfurt – with three presentations. Thank you for joining! My presentations …

View Article


Async Streams with C# 8

One of the many great features of C# 8 is async streams. Before C# 8, you could use the await …

View Article

Using, using, using with C# 8

C# has different meanings for the using keyword. One is the using directive to import types from namespaces, and to …

View Article

Explicit Interface Implementation with C#

With C#, interfaces can be implemented implicitly or explicitly. With implicit interface implementations, the members of the interface are public …

View Article


.NET Core at the Thrive Conference in Slovenia

This time the Thrive Conference in Slovenia celebrates 10 years! This time the conference is located in Postojna, at a …

View Article

Moving from the switch statement to switch expressions (C# 8)

Switch expressions and enhanced pattern matching are great new concepts working together with C# 8. I’ve already written some blog …

View Article

Changing State with the Switch Expression (C# 8)

A previous blog article on moving from the switch statement to the C# 8 switch expression led to some comments …

View Article


Alignment with C# 8 Switch Expressions

Recently I’ve written two blog articles about the new C# 8 switch expression. I’ve changed my last blog article to …

View Article


Async Streaming with ASP.NET Core SignalR and C# 8

ASP.NET Core SignalR version 2.1 offers streaming from the server to the client. Using ASP.NET Core 3.0, streams can also …

View Article

Image may be NSFW.
Clik here to view.

C# 9 – Positional or Nominal Creation

C# allows writing code with positional or nominal code style. Using positional code style, constructors can be used. Object initializer belong to the nominal category. So far the nominal category was...

View Article

Image may be NSFW.
Clik here to view.

Microsoft Build 2020 – Highlights

This Microsoft Build 2020 conference was very different from all the previous ones as a digital experience event because of the COVID-19 Coronavirus. Microsoft made it a great experience – with...

View Article

Image may be NSFW.
Clik here to view.

How Hello World! changed – top level statements and functions (C# 9)

C# 9 comes with many new features to enhance productivity and fix bugs. One productivity enhancement comes for small programs and learning C#: top level statements. This also allows for a new way to...

View Article


Image may be NSFW.
Clik here to view.

C# 8 Updates

For all my readers of Professional C# 7 and .NET Core 2 I’ve uploaded the new bonus chapter 6 with C# 8 updates! This bonus chapter covers these C# 8 features: Nullable reference types Using...

View Article

Image may be NSFW.
Clik here to view.

Professional C# and .NET – 2021 Edition

The new edition of my book is available – covering .NET, C#, WinUI, ASP.NET Core, EF Core, and more! Compared to the previous edition, it not only covers the newest editions of C# and .NET, you don’t...

View Article


Image may be NSFW.
Clik here to view.

C# Nullable Features thru the times

Exceptions of type NullReferenceException are the most common errors with .NET applications. With C# 8, nullable reference types have been introduced to get rid of these exceptions. The new .NET 6 and...

View Article

Image may be NSFW.
Clik here to view.

Thrive Conference in Slovenia

The last time the Thrive conference was held was in 2019. Now it’s happening again May, 24-25 2022 in Bistrica, Slovenia. I’m excited to give two presentations and a one-day workshop. Are you...

View Article


Image may be NSFW.
Clik here to view.

EF Core Mapping with TpH, Generic Types and Value Conversion

EF Core has powerful options to map your domain model to a relational database. In this article, I’ll show you how to use the Fluent API to configure a hierarchy of generic classes to map to a single...

View Article

Image may be NSFW.
Clik here to view.

System.Text.Json Serializing Hierarchical Data

The System.Text.Json serializer that was introduced with .NET Core 3.0 gets new features with every new .NET version. With .NET 7, features such as type hieararchies, contract customization, and...

View Article

Image may be NSFW.
Clik here to view.

Primary Constructors with C#

To reduce the syntax needed when writing C# code, C# 9 added records with primary constructors. C# 10 then added records for structs. Using C# 12 you can create classes with primary constructors. This...

View Article
Browsing all 21 articles
Browse latest View live