AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter18/Listing18.21.LimitingAnAttributesUsageWithAttributeUsageAttribute.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter18.Listing18_21
{
    using System;

    // Restrict the attribute to properties and methods
    [AttributeUsage(
      AttributeTargets.Field | AttributeTargets.Property)]
    public class CommandLineSwitchAliasAttribute : Attribute
    {
        // ...
    }
}
