title: Accessing object property as string and setting its value
body: <p>I have an instance of the <code>Account</code> class. Each account object has an owner, reference, etc.</p>
  
  <p>One way I can access an accounts properties is through accessors like </p>
  
  <pre><code>account.Reference;
  </code></pre>
  
  <p>but I would like to be able to access it using dynamic string selectors like:</p>
  
  <pre><code>account["PropertyName"];
  </code></pre>
  
  <p>just like in JavaScript. So I would have <code>account["Reference"]</code> which would return the value, but I also would like to be able to assign a new value after that like:</p>
  
  <pre><code>account["Reference"] = "124ds4EE2s";
  </code></pre>
  
  <p>I've noticed I can use </p>
  
  <pre><code>DataBinder.Eval(account,"Reference") 
  </code></pre>
  
  <p>to get a property based on a string, but using this I can't assign a value to the property.</p>
  
  <p>Any idea on how I could do that?</p>