Does anyone know why `MyClass::class.simpleName` i...
# announcements
d
Does anyone know why
MyClass::class.simpleName
is of
String?
type? Why is it not
String
?
s
Not all class objects refer to a class with a name
h
d
Ah ok, thanks a lot!
d
I use to use: MyClass::class.java.name when I need something like that. Please let me know if it was useful @damian
d
Thanks. I was using
as String
because I have control over the classes being used but I will also look at your suggestion. Thank you 👍
d
Instead of
as String
you can use
!!
👍 1