What are the correct version numbers for C#?

前端 未结 12 2018
小蘑菇
小蘑菇 2020-11-22 00:48

What are the correct version numbers for C#? What came out when? Why can\'t I find any answers about C# 3.5?

This question is primarily to

12条回答
  •  萌比男神i
    2020-11-22 01:10

    The biggest problem when dealing with C#'s version numbers is the fact that it is not tied to a version of the .NET Framework, which it appears to be due to the synchronized releases between Visual Studio and the .NET Framework.

    The version of C# is actually bound to the compiler, not the framework. For instance, in Visual Studio 2008 you can write C# 3.0 and target .NET Framework 2.0, 3.0 and 3.5. The C# 3.0 nomenclature describes the version of the code syntax and supported features in the same way that ANSI C89, C90, C99 describe the code syntax/features for C.

    Take a look at Mono, and you will see that Mono 2.0 (mostly implemented version 2.0 of the .NET Framework from the ECMA specifications) supports the C# 3.0 syntax and features.

提交回复
热议问题