jeudi 22 octobre 2015

Type.GetType() not working for F# type in C# code

I have an F# assembly called Assembly1

I have the following module:

namespace Assembly1

module MyModule =
   type MyClass(x: int, y: int) =
   new() = MyClass(0, 0)

In a C# assembly that references this F# assembly, the following code gives me a value of 'null' back:

var myType = Type.GetType("Assembly1.MyModule.MyClass, Assembly1");

Is what I am trying to do not possible?





Aucun commentaire:

Enregistrer un commentaire