protected bool HasGroups()
 {
     if (BadGroups.IsEmpty() && GoodGroups.IsEmpty())
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
 protected bool IsBadGroup(Type theType)
 {
     if (BadGroups.IsEmpty())
     {
         return(false);
     }
     else if (Attribute.IsDefined(theType, typeof(ValidationGroupAttribute)))
     {
         ValidationGroupAttribute ValidationGroup = (ValidationGroupAttribute)Attribute.GetCustomAttribute(theType, typeof(ValidationGroupAttribute));
         if (ValidationGroup.Groups.Contains(from itm in BadGroups
                                             select itm.Trim().ToUpper()))
         {
             return(true);
         }
     }
     return(false);
 }