private static bool IsSeveralAllowed(AcErrorType errorType) { var type = typeof(AcErrorType); var memInfo = type.GetMember(errorType.ToString()); return memInfo[0].GetCustomAttributes(typeof(SeveralAllowedAttribute), false).Length > 0; }