开发者

Script sharp compilation error

开发者 https://www.devze.com 2023-03-07 23:35 出处:网络
I create follow class class Class1<T> { private T _d; public T GetD() { return _d; } public void SetD(T d)

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

精彩评论

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