The FSharp code is structured as follows (I do not control the source code).
namespace FS [<AbstractClass; Sealed>] type TestType() = static member IrrelevantFunction() = 0 [<AutoOpen>] module Extensions = type TestType with
C # call code is as follows
public void Caller() { TestType.IrrelevantFunction(); //We want to call this //TestType.NeedToCallThis(); //Metadata: //namespace FS //{ // [Microsoft.FSharp.Core.AutoOpenAttribute] // [Microsoft.FSharp.Core.CompilationMappingAttribute] // public static class Extensions // { // public static int TestType.NeedToCallThis.Static(); // } //} //None of these compile //TestType.NeedToCallThis(); //Extensions.TestType.NeedToCallThis.Static(); //Extensions.TestType.NeedToCallThis(); }
c # f #
Kenneth ito
source share