Concordion.Internal.SpecificationConfigParser.Parse C# (CSharp) Method

Parse() public method

Parses the specified reader.
public Parse ( TextReader reader ) : void
reader TextReader The reader.
return void
        public void Parse(TextReader reader)
        {
            var document = XDocument.Load(reader);
            LoadConfiguration(document);
        }

Usage Example

コード例 #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);
        }
All Usage Examples Of Concordion.Internal.SpecificationConfigParser::Parse