fjgandrade / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

how to write IIFE (Immediately-Invoked Function Expression ) using Sharpkit #355

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by divyang4...@gmail.com on 26 Apr 2014 at 12:57

GoogleCodeExporter commented 9 years ago
To do so, you need to define an anonymous delegate:
var x = new JsFunc<object>(() => 7 + 7)();
HtmlContext.alert(x);

Original comment by DanelK...@gmail.com on 28 Apr 2014 at 11:27