title: Why does .NET allow the SerializableAttribute to be applied to enumerations?
body: <p>I have a class and one property is enum. Something like this:</p>
  
  <pre><code>    //Do i need [Serializable]    
      public enum SexEnum
      {
           Male,
           Female
      }
  
      [Serializable]
      public class Person
      {
           string Name {get;set;}
           SexEnum Sex {get;set;} 
      }
  </code></pre>
  
  <p>When I serialize <code>Person</code> with <code>BinaryFormatter</code>, do I need <code>[Serializable]</code> at the enum decleration?
  It works fine without it but then why does it allow the <code>[Serializable]</code> attribute in the enum decleration?</p>