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 + "\""); }
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 + "\""); }