title: Get custom attributes from an object
body: <p>When I try to get the custom attributes from an <code>object</code> the function returns <code>null</code>. Why?</p>
  
  <pre><code>class Person
  {
      [ColumnName("first_name")]
      string FirstName { get; set; }
  
      Person()
      {
          FirstName = "not important";
          var attrs = AttributeReader.Read(FirstName);
      }
  }
  
  static class AttributeReader
  {
      static object[] Read(object column)
      {
          return column.GetType().GetCustomAttributes(typeof(ColumnNameAttribute), false);
      }
  }
  </code></pre>