Based on my (limited) knowledge of expression trees, they are provided by
the C# or VB.net compiler, at compilation time.
As such you can only get the expression tree by calling a function which
takes Expression<T> from some C# code. The C# compiler will notice that you
are doing this, and will build the expression tree as part of it's other
compilation.

This means that
a) you can't get expression trees for things at runtime, =>
b) dynamic languages can't get expression trees, =>
c) IronRuby can't get expression trees =>
d) No, you can't get a method expression tree by it's name

If I'm wrong on this, I'd be overjoyed, because getting an expression tree
in a DLR language would be awesome :-)
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to