title: A property or indexer may not be passed as an out or ref parameter
body: <p>I'm getting the above error and unable to resolve it.
  I googled a bit but can't get rid of it.</p>
  <h2>Scenario:</h2>
  <p>I have class <code>BudgetAllocate</code> whose property is <code>budget</code> which is of <code>double</code> type.</p>
  <p>In my <code>dataAccessLayer</code>,</p>
  <p>In one of my classes I am trying to do this:</p>
  <pre><code>double.TryParse(objReader[i].ToString(), out bd.Budget);
  </code></pre>
  <p>Which is throwing this error:</p>
  <blockquote>
  <p>Property or indexer may not be passed as an out or ref parameter at
  compile time.</p>
  </blockquote>
  <p>I even tried this:</p>
  <pre><code>double.TryParse(objReader[i].ToString().Equals(DBNull.Value) ? &quot;&quot; : objReader[i].ToString(), out bd.Budget);
  </code></pre>
  <p>Everything else is working fine and references between layers are present.</p>