<div>Hi,guy.</div>
<div>&nbsp;</div>
<div>I want to call python lambda expression in C#. The following is lambda expression.</div>
<div>&nbsp;</div>
<div>&quot;CheckNumber = x,y:x&gt;y&quot;</div>
<div>&nbsp;</div>
<div>So, I want to use C# to execute the expression, I wirte&nbsp;a following&nbsp;function that,</div>
<div>The parameter expression is lambada expression, the parameters is a key-value list. The key is the name of parameter in lambda expression &#39;x&#39; and &#39;y&#39;.</div>
<div>&nbsp;public object CallPythonLambda(string expression, Hashtable parameters) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PythonEngine pe = PythonEngine.CurrentEngine;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //TODO:&nbsp;not&nbsp;implement.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>
<div>&nbsp;</div>
<div>Can anybody help me to complete the function? By the way, the version of IronPython is 2.0A3.</div>
<div>&nbsp;</div>
<div>Thanks a lot!</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>