1
Vote

"An item with the same key has already been added" error when the same attribute appears more than once in the template

description

If the same attribute appears more than once in the template, "An item with the same key has already been added" error is thrown at the line of code in ProcessText method where dictionaryEntry is added into dictionary.

Checking .ContainsKey solved the issue.
if (!dictionary.ContainsKey(dictionaryEntry.Key))

comments