title: Allow a custom Attribute only on specific type
body: <p>Is there a way to force the compiler to restrict the usage of a custom attribute to be used only on specific <strong>property</strong> types like int, short, string (all the primitive types)?<br>
  similar to the <a href="http://msdn.microsoft.com/en-us/library/system.attributeusageattribute%28v=vs.95%29.aspx">AttributeUsageAttribute</a>'s ValidOn-<a href="http://msdn.microsoft.com/en-us/library/system.attributetargets%28v=vs.95%29.aspx">AttributeTargets</a> enumeration.</p>