/// <summary> /// Retrieves a list of string values from the specified path in the configuration. /// </summary> /// <param name="path">The path that contains the values to retrieve.</param> /// <exception cref="InvalidOperationException">This exception is thrown if the current node is undefined.</exception> /// <returns>The list of string values defined in the specified path.</returns> public virtual IList <string> GetStringList(string path) { HoconValue value = GetNode(path); if (value == null) { return(new List <string>()); } return(value.GetStringList()); }
/// <summary> /// Retrieves a list of string values from the specified path in the configuration. /// </summary> /// <param name="path">The path that contains the values to retrieve.</param> /// <param name="defaultPaths">Default paths that will be returned to the user.</param> /// <exception cref="InvalidOperationException">This exception is thrown if the current node is undefined.</exception> /// <returns>The list of string values defined in the specified path.</returns> public virtual IList <string> GetStringList(string path, string[] defaultPaths) { HoconValue value = GetNode(path); if (value == null) { return(defaultPaths); } return(value.GetStringList()); }