开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜