title: What's the point of indicating AllowMultiple=false on an abstract Attribute class?
body: <p>On a recent <a href="https://stackoverflow.com/questions/2648783/how-do-the-httppost-httpput-etc-attributes-in-asp-net-mvc-2-work">question</a> about MVC attributes, someone asked whether using HttpPost and HttpDelete attributes on an action method would result in either request type being allowed or no requests being allowed (since it can't be both a Post and a Delete at the same time).   I noticed that ActionMethodSelectorAttribute, from which HttpPostAttribute and HttpDeleteAttribute both derive is decorated with</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Method,
                  AllowMultiple = false,
                  Inherited = true)]
  </code></pre>
  
  <p>I had expected it to not allow both HttpPost and HttpDelete on the same method because of this, but the compiler doesn't complain. My limited testing tells me that the attribute usage on the base class is simply ignored. AllowMultiple seemingly only disallows two of the <strong>same</strong> attribute from being applied to a method/class and doesn't seem to consider whether those attributes derive from the same class which is configured to not allow multiples.  Moreover, the attribute usage on the base class doesn't even preclude your from changing the attribute usage on a derived class.  That being the case, what's the point of even setting the values on the base attribute class?  Is it just advisory or am I missing something fundamental in how they work?</p>
  
  <p>FYI - it turns out that using both basically precludes that method from ever being considered. The attributes are evaluated independently and one of them will always indicate that the method is not valid for the request since it can't simultaneously be both a Post and a Delete.</p>