nikhilk/scriptsharp — Issue #149: pass a delegate without ss.Delegate.create?
Author: dmcweeney
Created: 2012-02-23 17:19:00+00:00
State: open

Hi,

Is it possible to pass a delegate without ss.Delegate.create getting generated.

eg. c#

pageRequestManager.add_endRequest( this.RemoveNotificationHandler ) ;

generates

pageRequestManager.add_endRequest(ss.Delegate.create(this, this._removeNotificationHandler$1))

Script.Literal( "pageRequestManager.add_endRequest( this.RemoveNotificationHandler )" );

generates

pageRequestManager.add_endRequest( this.RemoveNotificationHandler );

But then creates a renaming problem arises.

Thanks

Donal