public static bool IsAttributeDefined <TAttribute>(MemberInfo member, ReflectionOptions options) where TAttribute : Attribute
 {
     return(options switch
     {
         ReflectionOptions.Default => IsAttributeDefinedImpl(TypeReflectorHelper.GetReflector(member), typeof(TAttribute)),
         ReflectionOptions.Inherit => member.GetCustomAttributes <TAttribute>(true).Any(),
         _ => member.GetCustomAttributes <TAttribute>().Any()
     });
 public static bool IsAttributeDefined <TAttribute>(MemberInfo member) where TAttribute : Attribute
 {
     return(IsAttributeDefinedImpl(TypeReflectorHelper.GetReflector(member), typeof(TAttribute)));
 }