From 4ffc77f0c94d84919bdaaa267cbe0c115b440a94 Mon Sep 17 00:00:00 2001 From: Christian Nagel Date: Sat, 15 Jun 2024 20:34:26 +0200 Subject: [PATCH] dotnet8updates.md ch24 --- Dotnet8Updates.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dotnet8Updates.md b/Dotnet8Updates.md index b92355d3..8ecc1331 100644 --- a/Dotnet8Updates.md +++ b/Dotnet8Updates.md @@ -17,7 +17,6 @@ Instead of ```csharp ImmutableArray arr = ImmutableArray.Create("one", "two", "three", "four", "five"); - ``` We can do this: @@ -73,4 +72,9 @@ Or this (and use the compareType as parameter, access it when needed): ```csharp public class RacerComparer(CompareType compareType) : IComparer { -``` \ No newline at end of file +``` + +## Chapter 24 - ASP.NET Core + +- Using primary constructors +- `httpContext.Response.Headers.Append` instead of `httpContext.Response.Headers.Add` (which would throw on duplicates) \ No newline at end of file