kClass

inline fun <T : Any> kClass(): KClass<T>(source)

A function used to get the instance of class. This method allows to get class instances even for generic classes, which cannot be obtained using :: notation.

Usage example: kClass< List< String >() which returns KClass< List< String >.

Note that List::class returns KClass< List< * > and List< String >::class is not allowed.