Script sharp compilation error
I create follow class
class Class1<T>
{
private T _d;
public T GetD()
{
return _d;
}
public void SetD(T d)
开发者_开发问答{
_d = d;
}
}
and if I tried to compile this class I get the error:
Error 3 Check that your C# source compiles and that you are not using an unsupported feature.
What in my code wrong?
Generics are not supported by ScriptSharp: http://projects.nikhilk.net/ScriptSharp/Conceptual-Understanding
精彩评论