Skip to content

Commit

Permalink
dotnet8updates.md ch24
Browse files Browse the repository at this point in the history
  • Loading branch information
christiannagel committed Jun 15, 2024
1 parent d497ff3 commit 4ffc77f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dotnet8Updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Instead of

```csharp
ImmutableArray<string> arr = ImmutableArray.Create<string>("one", "two", "three", "four", "five");

```

We can do this:
Expand Down Expand Up @@ -73,4 +72,9 @@ Or this (and use the compareType as parameter, access it when needed):
```csharp
public class RacerComparer(CompareType compareType) : IComparer<Racer>
{
```
```

## Chapter 24 - ASP.NET Core

- Using primary constructors
- `httpContext.Response.Headers.Append` instead of `httpContext.Response.Headers.Add` (which would throw on duplicates)

0 comments on commit 4ffc77f

Please sign in to comment.