Kotlin Reflection Referencing a class


Example

To obtain a reference to a KClass object representing some class use double colons:

val c1 = String::class
val c2 = MyClass::class