c#调用F#中的lambda表达式
摘要:
c#调用F#自定义的库,可能会经常遇到F#函数采用了Lambda作为函数参数,在C#中lambda参数被生成了FSharpFunc<T1, TResult>>> 对象,不能直接用C#中的lambda表达式作为实参来调用,我们只有通过把lambda表达式转换为FSharpFunc<T1, TResult>>> 对象,以下就是把lambd表达式转换为FSharpFunc对象的方法:using System;using System.Collections.Generic;using System.Linq;using System.Text;usin 阅读全文
posted @ 2011-08-26 21:31 小指令 阅读(2286) 评论(0) 推荐(1)
浙公网安备 33010602011771号