Assuming you have some kind of "register" function...
# getting-started
d
Assuming you have some kind of "register" function which takes the class as a parameter now, you can adjust it like so:
Copy code
inline fun <reified T : Any> register(noinline factory: () -> T) {
    // here you can use T::class as the class and factory as theh factory
}