Exemplo n.º 1
0
        public static IAccessNumberParser FindOrCreateParser(string regexString, string formatName)
        {
            IAccessNumberParser result = FindParserByRegexPattern(regexString);

            if (null == result)
            {
                result = FindParserByName(formatName);
            }

            if (null == result)
            {
                result = new NoExceptionAccessNumberParser(new AccessNumberParser(regexString, formatName));
            }

            return(result);
        }
    public static IAccessNumberParser FindOrCreateParser(string regexString, string formatName)
    {
      IAccessNumberParser result = FindParserByRegexPattern(regexString);

      if (null == result)
      {
        result = FindParserByName(formatName);
      }

      if (null == result)
      {
        result = new NoExceptionAccessNumberParser(new AccessNumberParser(regexString, formatName));
      }

      return result;
    }