title: Best way to cache a reflection property getter / setter?
body: <p>I know that Reflection can be expensive. I have a class that gets/sets to properties often, and one way I figured was to cache the reflection somehow. I'm not sure if I'm supposed to cache an expression or what to do here really. This is what I'm currently doing:</p>
  
  <pre><code>typeof(T).GetProperty(propName).SetValue(obj, value, null);
  typeof(T).GetProperty(propName).GetValue(obj, null);
  </code></pre>
  
  <p>So... what would be the best way to make this quicker?</p>