Beispiel #1
0
    static void btn_onclick()
    {
        //Test static members
        PrototypeCodeSample.StaticFunction("some static value");
        alert("PrototypeCodeSample.StaticProperty: \"" + PrototypeCodeSample.StaticProperty +"\"");

        //Test instance members
        var obj = new PrototypeCodeSample();
        obj.InstanceFunction("some instance value");
        alert("obj.InstanceProperty: \"" + obj.InstanceProperty + "\"");
    }
Beispiel #2
0
    static void btn_onclick()
    {
        //Test static members
        PrototypeCodeSample.StaticFunction("some static value");
        alert("PrototypeCodeSample.StaticProperty: \"" + PrototypeCodeSample.StaticProperty + "\"");

        //Test instance members
        var obj = new PrototypeCodeSample();

        obj.InstanceFunction("some instance value");
        alert("obj.InstanceProperty: \"" + obj.InstanceProperty + "\"");
    }