예제 #1
0
 /// <inheritdoc />
 public override string GetString(HoconPath path, string @default = null)
 {
     return(GetString(path.ToString(), @default));
 }
예제 #2
0
 private IPathEntry GetPathEntry(HoconPath path)
 {
     return(GetPathEntry(path.ToString()));
 }
예제 #3
0
 /// <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));
 }
예제 #8
0
 /// <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));