Call a higher order F# function from C#

前端 未结 3 1709
北海茫月
北海茫月 2021-02-01 19:56

Given the F# higher order function (taking a function in parameter):

let ApplyOn2 (f:int->int) = f(2)  

and the C# function

         


        
3条回答
  •  醉话见心
    2021-02-01 20:18

    Just create reference to your assembly:

    #r @"Path\To\Your\Library.dll"
    let ApplyOn2 (f:int->int) = f(2)
    ApplyOn2 Library.Class.Increment
    

提交回复
热议问题