Пример #1
0
        /// <summary>
        /// Merges the specified to configuration into a new configuration.
        /// </summary>
        /// <param name="toMerge">To merge.</param>
        /// <returns></returns>
        public Config Merge(Config toMerge)
        {
            var config = new Config(Lines);

            foreach (var line in toMerge.Lines)
            {
                config.Remove(line);

                config.Lines.Add(line);
            }

            return(config);
        }
Пример #2
0
        /// <summary>
        /// Merges the specified to configuration into a new configuration.
        /// </summary>
        /// <param name="toMerge">To merge.</param>
        /// <returns></returns>
        public Config Merge(Config toMerge)
        {
            var config = new Config(Lines);

            foreach (var line in toMerge.Lines)
            {
                config.Remove(line);

                config.Lines.Add(line);
            }

            return config;
        }