Skip to content

Commit 999c71a

Browse files
Merge pull request #88 from ProfessionalCSharp/dotnet6
.NET 6 and C# 10 updates
2 parents d47d728 + 1e5975e commit 999c71a

File tree

2,082 files changed

+298987
-138320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,082 files changed

+298987
-138320
lines changed

1_CS/Arrays/.vscode/launch.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

1_CS/Arrays/.vscode/tasks.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

1_CS/Arrays/ArrayPoolSample/ArrayPoolSample.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
<Nullable>enable</Nullable>
7+
<ImplicitUsings>enable</ImplicitUsings>
78
</PropertyGroup>
89

910
<PropertyGroup>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
global using System.Buffers;

1_CS/Arrays/ArrayPoolSample/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Buffers;
3-
4-
for (int i = 0; i < 10; i++)
1+
for (int i = 0; i < 10; i++)
52
{
63
int arrayLength = (i + 1) << 10;
74
int[] arr = ArrayPool<int>.Shared.Rent(arrayLength);

1_CS/Arrays/BitArraySample/BitArrayExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System.Collections;
2-
using System.Text;
3-
4-
public static class BitArrayExtensions
1+
public static class BitArrayExtensions
52
{
63
public static string FormatString(this BitArray bits)
74
{

1_CS/Arrays/BitArraySample/BitArraySample.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
<Nullable>enable</Nullable>
7+
<ImplicitUsings>enable</ImplicitUsings>
78
</PropertyGroup>
89

910
</Project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
global using System.Collections;
2+
global using System.Text;

1_CS/Arrays/BitArraySample/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections;
3-
4-
BitArray bits1 = new(9);
1+
BitArray bits1 = new(9);
52
bits1.SetAll(true);
63
bits1.Set(1, false);
74
bits1[5] = false;

1_CS/Arrays/BitVectorSample/BinaryExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Linq;
3-
4-
public static class BinaryExtensions
1+
public static class BinaryExtensions
52
{
63
public static string AddSeparators(this string number) =>
74
number.Length <= 4 ? number :

0 commit comments

Comments
 (0)