: RealmQuery<T> { return this.equalTo(property.name, value) } fun <T : RealmModel> RealmQuery<T>.equalTo(property : KProperty<String?>, value: String) : RealmQuery<T> { return this.equalTo(property.name, value) } val persons = realm.where(Person::class).equalTo(Person::age, 25) val persons = realm.where(Person::class).equalTo(Person::age, "25") // Τϥʔ
[email protected]