Skip to content
Snippets Groups Projects
Commit f190db26 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

ConfigParser: AsConfig

parent 9f66553b
No related branches found
No related tags found
No related merge requests found
......@@ -232,6 +232,10 @@ class ConfigValue
throw new ConfigParseAttributeException(this, "String is not color");
}
}
public ConfigParser AsConfig()
{
return new ConfigParser(AsString(), Line);
}
public static implicit operator string(ConfigValue v) => v.AsString();
internal ConfigValue(ConfigSection _Section, string _Key, int _line)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment