Я только что создал простой проект в VS2010, C # dotnet 3.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Business.Util
{
public interface ICalculateCurrent<in T1, in T2, in T3, in T4>
{
bool GetValue(T1 obj1, T2 obj2, T3 obj3, T4 obj4);
}
public static class test
{
static void Main(string[] args)
{
}
}
}
Хорошо, на данный момент ничего не делает, но он компилируется.
Потом понял, что я действительно хотелчтобы сделать это в VS2008, dotnet3.5 я создал точно такой же код, и я получаю только ошибки относительно интерфейса;
Invalid token 'in' in class, struct, or interface member declaration
Type expected
Invalid token ',' in class, struct, or interface member declaration
Invalid token ',' in class, struct, or interface member declaration
Invalid token ',' in class, struct, or interface member declaration
Invalid token '>' in class, struct, or interface member declaration
Обе ссылки проекта одинаковы.Что мне не хватает в этом?
спасибо.