https://kotlinlang.org logo
#announcements
Title
# announcements
s

snowe

09/25/2017, 10:21 PM
so the reverse of that. can I turn a string into a property!?
d

diesieben07

09/25/2017, 10:38 PM
Yes.
MyClass::class.memberProperties.filter { it.name == "myProperty" }
s

snowe

09/25/2017, 10:38 PM
Ok, that's how I was doing it, wasn't sure if there was an easier way. Thanks!
It doesn't retain nullability though which seems weird.
d

diesieben07

09/25/2017, 10:39 PM
How do you mean?
s

snowe

09/25/2017, 10:43 PM
I wasn't able to check if the property was null, because intellij insisted that the property could never be null, even though it was marked as null.
my intellij also might have just been going really slowly.
d

diesieben07

09/25/2017, 10:48 PM
Strange.