示例#1
0
        public TimeSpan GetMillisDuration(string path, TimeSpan? @default = null)
        {
            HoconValue value = GetNode(path);

            if (value == null)
            {
                return(@default.GetValueOrDefault());
            }

            return(value.GetMillisDuration());
        }
示例#2
0
        public TimeSpan GetMillisDuration(string path, TimeSpan? @default = null)
        {
            HoconValue value = GetNode(path);

            if (value == null)
            {
                Debug.Assert(@default != null, "@default != null");
                return(@default.Value);
            }

            return(value.GetMillisDuration());
        }