Beispiel #1
0
        /// <summary>
        /// Method that stes configuration values into ConfigValues List
        /// </summary>
        /// <param name="name">Configuration name</param>
        /// <param name="value">Value</param>
        private void SetConfigValues(
            string name,
            object value
            )
        {
            var configValues = ConfigValues.Where(x => x.Key == name).SingleOrDefault();

            if (configValues.IsDefault())
            {
                ConfigValues.Add(name, value);
            }
            else
            {
                ConfigValues.Remove(name);
                ConfigValues.Add(name, value);
            }
        }