Interop between F# and C# lambdas

前端 未结 1 1908
我在风中等你
我在风中等你 2020-12-10 00:38

F# powerpack comes with a set of conversion methods to translate from Func<...> to F# functions, either standard or tupled ones. But is it possible to achieve the opposit

相关标签:
1条回答
  • 2020-12-10 01:21

    F# provides constructors for all delegate types that take F# values of the corresponding function types. E.g. in your case you want to use System.Func<_,_>(fun x -> ...) which applies the generated constructor of type ('a -> 'b) -> System.Func<'a, 'b>.

    0 讨论(0)
提交回复
热议问题