Esempio n. 1
0
        private string[] GetAsArray(string key)
        {
            if (!_nameToValue.TryGetValue(key, out string allString))
            {
                return(null);
            }

            if (!StringArrayParser.TryParse(allString, out string[] ar))
Esempio n. 2
0
        public static bool IsArrayLength(string key, Func <string, string> getValue, out int length)
        {
            if (!OptionPath.TryStripLength(key, out key))
            {
                length = 0;
                return(false);
            }

            string value = getValue(key);

            if (value == null)
            {
                length = 0;
                return(false);
            }

            if (!StringArrayParser.TryParse(value, out string[] ar))