I am playing around with F# and C#, and would like to call F# code from C#.
I managed to get it to work the other way around in Visual Studio by having two project
From this link they seem to have a number of possible solutions, but the one that seemed the simplest was a comment:
F# Code:
type FCallback = delegate of int*int -> int;;
type FCallback =
delegate of int * int -> int
let f3 (f:FCallback) a b = f.Invoke(a,b);;
val f3 : FCallback -> int -> int -> int
C# Code:
int a = Module1.f3(Module1.f2, 10, 20); // method gets converted to the delegate automatically in C#