/// <inheritdoc /> public override string GetString(HoconPath path, string @default = null) { return(GetString(path.ToString(), @default)); }
private IPathEntry GetPathEntry(HoconPath path) { return(GetPathEntry(path.ToString())); }
/// <inheritdoc /> public override string GetString(HoconPath path) { return(GetString(path.ToString())); }
public HoconImmutableElement GetValue(string path) { return(GetValue(HoconPath.Parse(path))); }
public bool HasPath(HoconPath path) { return(TryGetValue(path, out _)); }
public HoconImmutableElement this[HoconPath path] => GetValue(path);
public bool TryGetValue(string key, out HoconImmutableElement result) { result = null; return(!string.IsNullOrWhiteSpace(key) && TryGetValue(HoconPath.Parse(key), out result)); }
/// <summary> /// Retrieves a new configuration from the current configuration /// with the root node being the supplied path. /// </summary> /// <param name="path">The path that contains the configuration to retrieve.</param> /// <returns>A new configuration with the root node being the supplied path.</returns> public Config GetConfig(string path) => GetConfig(HoconPath.Parse(path));