Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="charsetName"></param>
        /// <returns></returns>
        public List <string> Numeric(string charsetName)
        {
            if (charsetName == "numeric")
            {
                //numeric
                CharsetSelecting = Digits;
                Validated        = false;
            }
            else if (charsetName == "numeric-space")
            {
                //numeric-space
                CharsetSelecting = Digits.Concat(Space).ToList();
                Validated        = false;
            }

            return(CharsetSelecting);
        }
Beispiel #2
0
        public List <string> Hex(string charsetName)
        {
            if (charsetName == "hex-lower")
            {
                //hex-lower
                CharsetSelecting = Digits.Concat(Hexa).ToList();
                Validated        = false;
            }
            else if (charsetName == "hex-upper")
            {
                //hex-upper
                CharsetSelecting = Digits.Concat(Hexa.ConvertAll(item => item.ToUpper())).ToList();
                Validated        = false;
            }

            return(CharsetSelecting);
        }