[IronPython] Expression and lambda functions

Severin Obertuefer seob at gmx.ch
Mon Jun 14 11:12:15 CEST 2010


Hello

I have an c# class with a method taking an expression:
*Refresh(System.Linq.Expressions.Expression<Func<T, bool>> predicate)*

in c# I can call it like;
*Refresh(a => a.ShopArtikel == true);*

is it possible to call the method from python in a similar way? I'm thinking
of
*Refresh(lambda a: a.ShopArtikel == true)*
*
*
how can I convert the lambda function to the expeced expression type?

best,
Severin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100614/4b5b49e7/attachment.html>


More information about the Ironpython-users mailing list