Esempio n. 1
0
        /// <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();
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 internal NestedDictionaryNode(TextReader p_reader)
     : this()
 {
     NestedDictionaries = NestedDictionaryParser.ParseNDF(p_reader);
     p_reader.Close();
 }