예제 #1
0
        /// <summary>
        /// Reads a TDF file from the given reader into a TdfNode.
        /// </summary>
        /// <param name="reader">The reader to read from.</param>
        /// <returns>A TdfNode containing the read data.</returns>
        public static TdfNode LoadTdf(TextReader reader)
        {
            var adapter = new TdfNodeAdapter();
            var parser  = new TdfParser(reader, adapter);

            parser.Load();
            return(adapter.RootNode);
        }
예제 #2
0
 /// <summary>
 /// See <see cref="ITdfNodeAdapter.Initialize"/>.
 /// </summary>
 /// <param name="parser">A reference to the parser.</param>
 public void Initialize(TdfParser parser)
 {
 }