C# Dictionary Help ASAP last lab duplicate keys

A word from our sponsor:

The Breast Form Store Little Imperfections Big Rewards Sale Banner Ad (Save up to 50% off)

I have two dictionaries and i need to deal with the duplicate key issue.

for the visual studio project files
https://github.com/QKurtz/Lab12

private void CurrencyCalculatorForm_Load(object sender, EventArgs e)
{
try
{
////use this in second project for dictionary
ExchangeRateService exchangeRate =
new ExchangeRateService(EXCHANGE_RATE_URL);
CountryCodesToRates countryCodesToRate =
exchangeRate.DeserializeJsonData();

//dictionary with currency code and currency name
ExchangeRateService exchangeName =
new ExchangeRateService(CURRENCY_NAME_URL);
CountryCodesToNames countryCodesToName =
exchangeName.DeserializeJsonData();
//CompositeDictionary(countryCodesToRate.Rates, countryCodesToNames.Base);
//PopulateListView(countryCodesToRate.Rates);
dollarListBox.Items.AddRange(Dollar.GetDollarsList());

Dictionary results = new Dictionary();

for (int i = 0; i < countryCodesToRate.Rates.Count; i++)
{
string currencyName = "";
decimal conversionRate = 0;
foreach (KeyValuePair keyValuePair in countryCodesToName)
{
currencyName = keyValuePair.Value;
//results[keyValuePair.Key] = keyValuePair.Value;
}

foreach (KeyValuePair keyValuePair1 in countryCodesToRate.Rates)
{
conversionRate = keyValuePair1.Value;
//results[keyValuePair1.Value] = keyValuePair1.Value;
}

results.Add(currencyName, conversionRate);
var duplicateValues = results.GroupBy(x => x.Value).Where(x => x.Count() > 1);

if (results.Equals(duplicateValues))
{
results.Remove(currencyName);
}
else
{

}
}
PopulateListView(results);
}
Hugs:)
Michelle SidheElf Amaianna

Click Like or Love to appropriately show your appreciation for this post: