Lets say I have a C# class
namespace CSharp;
using FSharp;
class Point
{
public double[] coords;
double MyX
{
get
{
return FSharp.MyX(this);
}
}
}
And an F# method that would return a coordinate
namespace FSharp
open CSharp
let MyX (x : CSharp.Point) = x.coords.item 0
And this would be just fine but its circularly referencing because its 2 separate projects (in 1 solution). There would not be a problem if they were treated as if they are the same project, but VS does not let me do that and as far as I'm concerned, you cant use 2 coding languages in 1 project. At least I didnt find a way to do that.
My question is, how to accomplish such a thing?