title: Custom Attribute not being hit
body: <p>I've created a custom attribute which writes to the console when it's hit, however it doesn't seem to be hit.  It's the microsoft tutorial (http://msdn.microsoft.com/en-us/library/sw480ze8.aspx) and is being run on 2010, .net 4.  I'm guessing it must be me that's doing something wrong, but I can't see what it is.  Can anyone help?</p>
  
  <p>This is the attribute, whose code is never being hit</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
  public class Author : Attribute
  {
      private string _name;
      private double _version;
  
      public Author(string name)
      {
          Console.WriteLine(string.Format("author {0} was just created", name));
  
          _name = name;
          _version = 1.0;
      }
  }
  </code></pre>
  
  <p>This is the class that uses it - it's successfully writing out the code in the constructor:</p>
  
  <pre><code>/// &lt;summary&gt;
  /// TODO: Update summary.
  /// &lt;/summary&gt;
  [Author("P. Ackerman")]
  public class Ackerman
  {
      public Ackerman()
      {
          Console.WriteLine("I created Ackerman.");
      }
  }
  </code></pre>
  
  <p>And this is the console app that calls it and is successfully printing out the code in the new Ackerman() constructor:</p>
  
  <pre><code>    static void Main(string[] args)
      {
          Ackerman author1 = new Ackerman();
          Console.ReadLine();
      }
  </code></pre>
  
  <p>Thanks!!</p>