I need to pass `this` into one of the properties I...
# getting-started
p
I need to pass
this
into one of the properties I have in my class.. is there anything better or more idiomatic I could do than:
Copy code
class Main {
    lateinit var manager: Manager
    
    init {
        manager = Manager(this)
    }
}
u
poohbar: if you need to use `Main`'s properties in `Manager`'s initialization you can use
lazy
delegate.
Copy code
val manager by lazy { Manager(this) }