c# - ScriptSharp: myObject.prototype = new myOtherObject; -
c# - ScriptSharp: myObject.prototype = new myOtherObject; -
how can reproduce in scriptsharp (c#):
myobject = function(input) { } myobject.prototype = new myotherobject;
when you're using script# you're using c# syntax create classes, derive classes etc.
so define class myobject , have derive other class myotherobject, , allow compiler , bootstrapper script (mscorlib.js) set inheritance @ runtime.
the whole point have natural oop syntax, rather work simulation manually chaining prototypes.
hope helps.
c# javascript asp.net script#
Comments
Post a Comment