public static bool TargetsMembers(this AttributeTargets targets) => targets.HasFlagOf( AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Event | AttributeTargets.Constructor);
public static bool TargetsTypes(this AttributeTargets targets) => targets.HasFlagOf( AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct);