Skip to content

Conversation

@iamcarbon
Copy link

This PR enables the use of C# 11 and support for Span within the library.

@iamcarbon iamcarbon requested a review from drieseng as a code owner August 24, 2023 19:05
@iamcarbon
Copy link
Author

iamcarbon commented Aug 24, 2023

@drieseng Let me know your thoughts on enabling C# 11 and Span support within the library.

CC @Rob-Hague

@WojciechNagorski
Copy link
Collaborator

.NET Standard and .NET Framework do not support C# 11. I know that in this case, it works but it also allows to use of features that will never work on .NET Framework and .NET Standard.

Target Version C# language version default
.NET 7.x C# 11
.NET 6.x C# 10
.NET 5.x C# 9.0
.NET Core 3.x C# 8.0
.NET Core 2.x C# 7.3
.NET Standard 2.1 C# 8.0
.NET Standard 2.0 C# 7.3
.NET Standard 1.x C# 7.3
.NET Framework all C# 7.3

Table source

The proposed changes do not bring enough value to the project to offset the disadvantages. The Span can be also used without C# 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants