示例#1
0
        public virtual string Generate()
        {
            if (m_allowedChars == null || m_allowedChars.Length == 0)
            {
                m_allowedChars = GetAllowedChars(m_configuration);
            }

            return(m_genericCodeGenerator.GenerateCode(m_configuration.CodeLength, m_allowedChars));
        }
示例#2
0
        public string Generate(int length)
        {
            var result = m_genericCodeGenerator.GenerateCode(length, m_allowedCharacters);

            return(result);
        }