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