ISO-1 C#语言规范错误FastMember [英] ISO-1 C# language specification error for FastMember

查看:519
本文介绍了ISO-1 C#语言规范错误FastMember的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我装了.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):

这篇关于ISO-1 C#语言规范错误FastMember的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆