title: How can I assign a value to KMutableProperty parameter?
body: <p>In a method I would like to receive KMutableProperty as parameter and assign a value to it.</p>
  
  <p>Another question is what is the correct way of passing a parameter into such a method.</p>
  
  <p>Basically I would like to have something like that:</p>
  
  <pre><code>class MyBinder {
    ...
  
    fun bind(property: KMutableProperty&lt;Int&gt;): Unit {
       property.set(internalIntValue)
    }
  }
  </code></pre>
  
  <p>And then call it in another class</p>
  
  <pre><code>  myBinder.bind(this::intProperty)
  </code></pre>