Parse() public method

Parses the specified reader.
public Parse ( TextReader reader ) : void
reader TextReader The reader.
return void
示例#1
0
        /// <summary>
        /// Loads the specified path to assembly.
        /// </summary>
        /// <param name="pathToAssembly">The path to assembly.</param>
        /// <returns></returns>
        private SpecificationConfig Load(string pathToAssembly)
        {
            var configFileName = pathToAssembly.Replace(".dll", ".config");

            if (File.Exists(configFileName))
            {
                var specificationConfigParser = new SpecificationConfigParser(this);
                specificationConfigParser.Parse(new StreamReader(configFileName));
            }

            return(this);
        }
        /// <summary>
        /// Loads the specified path to assembly.
        /// </summary>
        /// <param name="pathToAssembly">The path to assembly.</param>
        /// <returns></returns>
        private SpecificationConfig Load(string pathToAssembly)
        {
            var configFileName = Path.ChangeExtension(pathToAssembly, ".config");

            if (File.Exists(configFileName))
            {
                var specificationConfigParser = new SpecificationConfigParser(this);
                specificationConfigParser.Parse(new StreamReader(configFileName));
            }

            return(this);
        }
        /// <summary>
        /// Loads the specified path to assembly.
        /// </summary>
        /// <param name="pathToAssembly">The path to assembly.</param>
        /// <returns></returns>
        private SpecificationConfig Load(string pathToAssembly)
        {
            var configFileName = Path.ChangeExtension(pathToAssembly, ".config");
            if (File.Exists(configFileName))
            {
                var specificationConfigParser = new SpecificationConfigParser(this);
                specificationConfigParser.Parse(new StreamReader(configFileName));
            }

            return this;
        }
        /// <summary>
        /// Loads the specified path to assembly.
        /// </summary>
        /// <param name="pathToAssembly">The path to assembly.</param>
        /// <returns></returns>
        private SpecificationConfig Load(string pathToAssembly)
        {
            var configFileName = pathToAssembly.Replace(".dll", ".config");
            if (File.Exists(configFileName))
            {
                var specificationConfigParser = new SpecificationConfigParser(this);
                specificationConfigParser.Parse(new StreamReader(configFileName));
            }

            return this;
        }