سؤال

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

The compiler generates this error:

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

How do we get past this?

هل كانت مفيدة؟

المحلول

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?

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):

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top