How to get 'System.Type' of the module?
For example module:
module Foo =      let bar = 1   And this does not work:
printfn "%s" typeof<Foo>.Name   Error is:
The type 'Foo' is not defined 
                You could add a marker type to the module and then discover the module's type from that:
module Foo =       type internal Marker = interface end     let t = typeof<Marker>.DeclaringType 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With