简体   繁体   English

Mono 2.6.4使用什么版本的C#?

[英]What version of C# is used by Mono 2.6.4?

Perhaps (hopefully) I'm missing something obvious, but I can't see from the Mono site what version of C# is used for any particular version of Mono, and as a C# newbie I'm not sure how to find out directly myself. 也许(希望)我错过了一些显而易见的东西,但我无法从Mono网站上看到什么版本的C#用于任何特定版本的Mono,而作为C#newbie我不知道如何直接找到我自己。

My specific question is: what version of C# is used by Mono 2.6.4? 我的具体问题是:Mono 2.6.4使用的是什么版本的C#? (The reason I'm interested in that version is that it seems to be the base version of the Mono variant used by the current version of Unity 3D.) (我对该版本感兴趣的原因是它似乎是当前Unity 3D版本使用的Mono变体的基本版本。)

The release notes have this to say: 发行说明有这样的说法:

If Mono 2.6.1 is configured with the preview mode, you will also get early access to Mono's C# 4.0 implementation. 如果使用预览模式配置Mono 2.6.1,您还可以及早访问Mono的C#4.0实现。 This implementation is now available as part of the dmcs command. 此实现现在作为dmcs命令的一部分提供。

C# 4.0 named arguments and optional parameters have been fully implemented. C#4.0命名参数和可选参数已经完全实现。

So, to be safe, keep to C# 3.0 features. 因此,为了安全起见,请遵守C#3.0功能。

看来通过的外观使用4.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM