public virtual IList<KeyValuePair<string, string>> GetParametersAsList(string component)
{
if (component == null)
{
throw new ArgumentNullException("component", "Component cannot be null.");
}
try
{
// Convert to upper for case insensitivity.
return new List<KeyValuePair<string, string>>(_orderedParamsByComponent[component]);
}
catch (Exception ex)
{
ReThrowException("Error while getting params as IList.",
new object[] { ConfigFile, component }, ex);
// that throws, but the compiler wants a return statement.
return null;
}
}