ISO-1 C#语言规范错误FastMember错误、语言、ISO、FastMember

2023-09-06 17:31:39 作者:天上无云不下雨

我装了.NET 3.5 FastMember从的http:// code.google.com / P /快件/来源/于2010年VS结账

I loaded up the .net 3.5 FastMember from http://code.google.com/p/fast-member/source/checkout in VS 2010.

编译器生成此错误:

功能'静态类'不能使用,因为它不是ISO-1 C#语言规范的一部分。的

feature 'static classes' cannot be used because it is not part of the ISO-1 C# language specification.

如何突破这个?

推荐答案

ISO-1是C#1.2; FastMember专门不是设计来处理。这也使得使用泛型,它不存在,直到ISO-2。或许,这将有可能摆脱所有这些,但我不痛的好处。事物的数量需要C#1.2的......非常小。

ISO-1 is C# 1.2; FastMember was specifically not designed to handle that. It also makes use of generics, which don't exist until ISO-2. It would probably be possible to get rid of all those, but I'm not sore of the benefit. The number of things that require C# 1.2 is ... extremely small.

您可以在这里澄清的背景下?

Can you clarify the context here?

如果你不刻意限制自己到C#1.2,然后去项目属性,高级...,改变语言版本 - 默认是罚款(虽然它建立在ISO-2又称C#2.0中,如果你真的想):

If you aren't intentionally limiting yourself to C# 1.2, then go to project properties, Advanced... and change the language version - "default" is fine (although it does build in ISO-2 aka C# 2.0, if you really want):