Ejemplo n.º 1
0
        public object Parse(System.Collections.Specialized.NameValueCollection data, string key, string prefix, out bool succeed)
        {
            string input  = ConverCore.GetValue(data, key, prefix);
            Int16  result = 0;

            succeed = Int16.TryParse(input, out result);
            return(result);
        }
Ejemplo n.º 2
0
        public object Parse(System.Collections.Specialized.NameValueCollection data, string key, string prefix, out bool succeed)
        {
            string input = ConverCore.GetValue(data, key, prefix);

            if (string.IsNullOrEmpty(input))
            {
                succeed = false;
            }
            else
            {
                succeed = true;
            }
            return(input);
        }