title: How to get a custom attribute from object instance in C#
body: <p>Let's say I have a class called Test with one property called Title with a custom attribute:</p>
  
  <pre><code>public class Test
  {
      [DatabaseField("title")]
      public string Title { get; set; }
  }
  </code></pre>
  
  <p>And an extension method called DbField. I am wondering if getting a custom attribute from an object instance is even possible in c#.</p>
  
  <pre><code>Test t = new Test();
  string fieldName = t.Title.DbField();
  //fieldName will equal "title", the same name passed into the attribute above
  </code></pre>
  
  <p>Can this be done?</p>