Consider replacing this with a LINQ query to build the reverse dictionary.