C# 版本和 .NET Framework 版本?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/688441/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 13:33:38  来源:igfitidea点击:

C# Version and .NET Framework Version?

c#frameworks

提问by user83450

I am confused with both the C# version and .NET framework version. In other words, I want to know the relationship with C# version and .NET framework. E.g: which is C# version in .NET framework 3.0?

我对 C# 版本和 .NET 框架版本感到困惑。换句话说,我想知道与 C# 版本和 .NET 框架的关系。例如:.NET 框架 3.0 中的 C# 版本是什么?

回答by Quintin Robinson

I am not sure what your actual question is, but if it is what are the current versions..

我不确定您的实际问题是什么,但如果是当前版本。

C#: 3.0
.NET Framework: 3.5

C#:3.0
.NET 框架:3.5

You might also want to take a look at this breakdown chart. It provides the Framework, language and CLR relations.

您可能还想看看这个细分图表。它提供了框架、语言和 CLR 关系。

回答by Jimmie R. Houts

.net 2 C# 2

.net 2 C# 2

.net 3 C# 2

.net 3 C# 2

.net 3.5 C# 3

.net 3.5 C# 3

回答by Matthew Sposato

C# 1.0 - Managed Code

C# 1.0 - 托管代码

C# 2.0 - Generics, Nullable Types, Anonymous Delegates, Partial Classes / Methods

C# 2.0 - 泛型、可空类型、匿名委托、部分类/方法

C# 3.0 - LINQ, Lambda Expressions, Implicit Variable Typing, Streamlined Object Initialization

C# 3.0 - LINQ、Lambda 表达式、隐式变量类型、流线型对象初始化

// Related? somewhat perhaps

// 有关的?或许