action - Convert event delegate from C# to VB.NET -


tried convert code vb.net using various online converters none worked (got error on event handler declaration). i'm using vs 2012 , .net 4.5. ideas?

readonly action<idialogmanager, action<bool>> closecheck;  public void execute(actionexecutioncontext context) {         closecheck(shell.dialogs, result => completed(this, new resultcompletioneventargs { wascancelled = !result }));     }  public event eventhandler<resultcompletioneventargs> completed = delegate { }; 

i created dummy types in linqpad , got this:

readonly closecheck action(of idialogmanager, action(of boolean))  public sub execute(byval context actionexecutioncontext)     closecheck(shell.dialogs, sub(result) raiseevent completed(me, new resultcompletioneventargs { .wascancelled = not result })) end sub  public event completed eventhandler(of resultcompletioneventargs) 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -