thanhhovn / sharpkit

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

Support expression trees #304

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
NA

Original issue reported on code.google.com by DanelK...@gmail.com on 22 Jul 2013 at 11:28

GoogleCodeExporter commented 8 years ago
Can you please explain, what do you mean with that?

Original comment by sebastia...@gmail.com on 4 Nov 2013 at 9:29

GoogleCodeExporter commented 8 years ago
Convert expression trees into real JavaScript objects, just like .NET compiler 
does, e.g.:

t => t.Name = "Shooki"

Expression.Lambda(typeof(Contact), 
"t").Body(Expression.Param("t").Property("Name").Assign(Expression.Value("Shooki
");

Essentially we need to build the expression tree AST in JavaScript, we can 
start by simply serializing the data into JSON, or to method calls like the 
example above. Try reflecting over some Expression Trees using ILSpy and see 
what it generates...
Here's a link to the specifications:
http://msdn.microsoft.com/en-us/library/jj131805(v=sql.105).aspx

Original comment by DanelK...@gmail.com on 5 Nov 2013 at 1:04