Which C# version .NET Core uses?

前端 未结 3 1856
轻奢々
轻奢々 2021-02-18 15:46

I know that C# version depends on .NET Framework.

But .NET Core which version uses?

Particularly .NET Core 2? C#7?

3条回答
  •  后悔当初
    2021-02-18 16:22

    From Microsoft .net core what's new page:

    NET Core 2.0 supports C# 7.1, which adds a number of new features, including:

    • The Main method, the application entry point, can be marked with the async keyword.
    • Inferred tuple names.
    • Default expressions.

    You can also review check the C# Language versioning page

    The compiler determines a default based on these rules:

    .NET Core 2.x C# 7.3

提交回复
热议问题