コード例 #1
0
ファイル: HoconRoot.cs プロジェクト: nagytech/HOCON
        /// <inheritdoc cref="GetTimeSpan(string,System.Nullable{System.TimeSpan},bool)"/>
        public TimeSpan GetTimeSpan(HoconPath path, TimeSpan? @default = null, bool allowInfinite = true)
        {
            HoconValue value = GetNode(path);

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

            return(value.GetTimeSpan(allowInfinite));
        }