Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable C# 11, System.Span, and utilize UTF-8 literals #1160

Closed
wants to merge 2 commits into from

Conversation

iamcarbon
Copy link

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

@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