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

Documentation: C#9 language features and netstandard2.0 #49538

Closed
ptr1120 opened this issue Nov 21, 2020 · 3 comments
Closed

Documentation: C#9 language features and netstandard2.0 #49538

ptr1120 opened this issue Nov 21, 2020 · 3 comments
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@ptr1120
Copy link

ptr1120 commented Nov 21, 2020

I did not find any documentation about which of the new C#9 language features are supported in a library that targets netstandard2.0.
My questions:

  1. Records (Champion "Records" (VS 16.8, .NET 5) csharplang#39): are currently working with netstandard 2.0, is this a supported feature?
  2. Covariant Returns (Champion "Covariant Return Types" (VS 16.8, .NET 5) csharplang#49), are currently not working, any chance to get this working with netstandard 2.0?

Thank you and best regards!

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 21, 2020
@PathogenDavid
Copy link
Contributor

Officially speaking, C#9 is only officially supported on .NET 5.

2. Covariant Returns (dotnet/csharplang#49), are currently not working, any chance to get this working with netstandard 2.0?

Covariant returns require support from the runtime, so they will never work on .NET Standard 2.0


That being said, as you've noticed some feature work just fine. @Sergio0694 Has a nice write-up of what works on unsupported runtimes. (Some features require a small amount of work on your part to make them work.)

@ptr1120
Copy link
Author

ptr1120 commented Nov 21, 2020

Thank you very much.

@ptr1120 ptr1120 closed this as completed Nov 21, 2020
@PathogenDavid
Copy link
Contributor

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

3 participants