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
More Related Contents:
- How does Rust implement reflection?
- Getting method parameter names
- Scala: How do I dynamically instantiate an object and invoke a method using reflection?
- Go reflection with interface embedded in struct – how to detect “real” functions?
- How can I get the list of a columns in a table for a SQLite database?
- How do I call a Scala Object method using reflection?
- How do I get the path of the assembly the code is in?
- Modify a class definition’s annotation string parameter at runtime
- Java Reflection Performance
- Can I obtain method parameter name using Java reflection?
- How to solve InaccessibleObjectException (“Unable to make {member} accessible: module {A} does not ‘opens {package}’ to {B}”) on Java 9?
- How can I get all classes within a namespace?
- Get all of the Classes in the Classpath
- What’s the difference between System.Type and System.RuntimeType in C#?
- Getting Class type from String
- Getting value of public static final field/property of a class in Java via reflection
- Get a generic method without using GetMethods
- How to constrain one type parameter by another
- How to get Method Parameter names in Java 8 using reflection?
- Check if a Class Object is subclass of another Class Object in Java
- How to work with varargs and reflection
- Java Reflection Beans Property API
- How do you create a new instance of a struct from its type at run time in Go?
- Java Reflection calling constructor with primitive types
- Get member to which attribute was applied from inside attribute constructor?
- Comparing Object properties using reflection
- F# development and unit testing? [closed]
- F# extension methods in C#
- How do I write this member constraint in F#?
- Get private Properties/Method of base-class with reflection