public void SetValues(string section, IList<KeyValuePair<string, string>> values)
{
if (String.IsNullOrEmpty(section))
{
throw new ArgumentException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "section");
}
if (values == null)
{
throw new ArgumentNullException("values");
}
var sectionElement = GetOrCreateSection(_config.Root, section);
foreach (var kvp in values)
{
SetValueInternal(sectionElement, kvp.Key, kvp.Value);
}
Save();
}