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);
        }
        /// <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;
        }