<div>Hi,guy.</div>
<div> </div>
<div>I want to call python lambda expression in C#. The following is lambda expression.</div>
<div> </div>
<div>"CheckNumber = x,y:x>y"</div>
<div> </div>
<div>So, I want to use C# to execute the expression, I wirte a following 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 'x' and 'y'.</div>
<div> public object CallPythonLambda(string expression, Hashtable parameters) {<br> PythonEngine pe = PythonEngine.CurrentEngine;<br> //TODO: not implement.<br> }</div>
<div> </div>
<div>Can anybody help me to complete the function? By the way, the version of IronPython is 2.0A3.</div>
<div> </div>
<div>Thanks a lot!</div>
<div> </div>
<div><br> </div>