How to do typeof of a module in a fsx file?
Posted
by Stringer Bell
on Stack Overflow
See other posts from Stack Overflow
or by Stringer Bell
Published on 2010-05-26T19:55:46Z
Indexed on
2010/05/26
20:21 UTC
Read the original article
Hit count: 210
Let's say I have a Foo.fsx
script that contains this code:
module Bar =
let foobar = "foo"+"bar"
open Bar
let a = System.Reflection.Assembly.GetExecutingAssembly()
let ty = a.GetType("Foo.Bar") // but it returns null here
How can I achieve that? Thanks!
© Stack Overflow or respective owner