nikhilk/scriptsharp — Issue #163: Extension methods?
Author: dmcweeney
Created: 2012-03-08 12:04:42+00:00
State: open

Is it possible using Script# to write extension methods for existing js objects.
ie output would be like:

if (!Array.prototype.myMethod)
{
Array.prototype.myMethod = function Array$myMethod(p0)
{
// implementation
}
}

Thanks

Donal