/// <summary> /// Parses the given ndf data into this nested dictionary node. This node will act as the root node for the parsed ndf data. /// </summary> /// <param name="p_ndf">The ndf data to parse.</param> public void ParseFromString(string p_ndf) { StringReader p_reader = new StringReader(p_ndf); NestedDictionaries = NestedDictionaryParser.ParseNDF(p_reader); p_reader.Close(); }
/// <summary> /// Parses the given ndf data into this nested dictionary node. This node will act as the root node for the parsed ndf data. /// </summary> /// <param name="p_ndf">The ndf data to parse.</param> public static NestedDictionaryNode ParseFromNdfString(string p_ndf) { var node = new NestedDictionaryNode(); StringReader p_reader = new StringReader(p_ndf); node.NestedDictionaries = NestedDictionaryParser.ParseNDF(p_reader); p_reader.Close(); return(node); }
internal NestedDictionaryNode(TextReader p_reader) : this() { NestedDictionaries = NestedDictionaryParser.ParseNDF(p_reader); p_reader.Close(); }