标签云

微信群

扫码加入我们

WeChat QR Code

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 aid those who are searching for an answer using an incorrect version number, e.g. C# 3.5. The hope is that anyone failing to find an answer with the wrong version number will find this question and then search again with the right version number.


This is one of a good source to understand everything. en.wikipedia.org/wiki/C_Sharp_(programming_language)

2019年06月26日24分05秒

Shouldn't that second paragraph be in a comment instead of the question, since it's not part of the question

2019年06月26日24分05秒

TankorSmash: I think it's sufficiently important as the context of the question that it's worth keeping where it is. IMO, of course.

2019年06月25日24分05秒

To whoever suggested including concurrent collections: this is a list of language features, not framework features. Note the lack of mentioning WPF, etc.

2019年06月26日24分05秒

nawfal: Roslyn is irrelevant to that - and .NET native is somewhat separate. But basically, yes, I believe it's still 4.

2019年06月25日24分05秒

nawfal: None of the language changes need any CLR changes.

2019年06月25日24分05秒

alper: Unity wouldn't be a specific version of C# so much as a specific version of the .NET framework and/or runtime. IIRC, it's effectively on CLR v2, but may have some aspects of .NET 3.5.

2019年06月25日24分05秒

markmnl: A project doesn't generally have a specified C# version number... you could open the same project in different versions of Visual Studio and find the same code works in one but doesn't work in another. You can limit the C# version, although that's done on a syntactic rather than semantic basis. But yes, if you create a project targeting .NET 4 in Visual Studio 2015, you can use most C# 6 features...

2019年06月25日24分05秒

What about .NET Core versions ?

2019年06月26日24分05秒

Pac0 .NET Core development is pretty much independent of VS development and is hard to keep track of (being open source). In fact all of VS, .NET and .NET Core are iterating quite fast.

2019年06月25日24分05秒

Where did you get a C# 2.0 language specification in December 2002 from? Likewise C# 4 in June 2006? Are you sure you're not talking about ECMA editions, which are completely different?

2019年06月26日24分05秒

just refer the following link en.wikipedia.org/wiki/C_Sharp_(programming_language)

2019年06月26日24分05秒

I'm not sure that having MVC in the same table is helpful, to be honest... it's just on a separate release schedule, effectively.

1970年01月01日00分03秒

Jon This is true, just adding it here for anyone that might need it,because i did try to find out the correponding release dates of .NET frameworks, so that i get a better understanding of the whole version history.

2019年06月25日24分05秒

No, C# corresponding to .NET 3.5 is named "Visual C# 2008" if you really want to use that numbering. The C# 3.0 features were introduced in "Visual C# 2008" which is why on the page you're linked to they're under "What's New in the Original Release Version of Visual C# 2008". Using the Visual Studio version numbers is a bad idea in general though, as it makes very little sense when you're building with Mono, for example. The C# language has well-specified version numbers... we know which Visual C# product originally introduced that version of C#, but they're not the same thing.

2019年06月25日24分05秒

JonSkeet, no, I don't. Wanted to ask you (and another answerer) update your answer but since my comment became too lengthy, I've decided then to put as answer. Thanks for your info

2019年06月26日24分05秒

I dont think C# 3.0 can run on VS 2005.

2019年06月26日24分05秒