/// <summary> /// Retrieves the string value from this <see cref="T:Hocon.HoconValue" />. /// </summary> /// <returns>The string value represented by this <see cref="T:Hocon.HoconValue" />.</returns> public virtual string GetString() { return(Type.IsLiteral() ? ConcatString() : throw new HoconException($"Could not convert '{Type}' to string.")); }
public static bool IsMergeable(this HoconType t1, HoconType t2) { return(t1 == t2 || t1.IsLiteral() && t2.IsLiteral()); }