Skip to content

Commit 4ffc77f

Browse files
dotnet8updates.md ch24
1 parent d497ff3 commit 4ffc77f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dotnet8Updates.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Instead of
1717

1818
```csharp
1919
ImmutableArray<string> arr = ImmutableArray.Create<string>("one", "two", "three", "four", "five");
20-
2120
```
2221

2322
We can do this:
@@ -73,4 +72,9 @@ Or this (and use the compareType as parameter, access it when needed):
7372
```csharp
7473
public class RacerComparer(CompareType compareType) : IComparer<Racer>
7574
{
76-
```
75+
```
76+
77+
## Chapter 24 - ASP.NET Core
78+
79+
- Using primary constructors
80+
- `httpContext.Response.Headers.Append` instead of `httpContext.Response.Headers.Add` (which would throw on duplicates)

0 commit comments

Comments
 (0)