Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Created July 21, 2011 16:53
Show Gist options
  • Save qpfiffer/1097615 to your computer and use it in GitHub Desktop.
Save qpfiffer/1097615 to your computer and use it in GitHub Desktop.
More .NET beauty, inorite?
for each (Generic::KeyValuePair<String ^, List<String ^> ^> ^item in temp->NameToDataMap) {
if (mergeInto->NameToDataMap->ContainsKey(item->Key)) {
for each (String ^subString in temp->NameToDataMap[item->Key]) {
mergeInto->NameToDataMap[item->Key]->Add(subString);
}
} else {
mergeInto->NameToDataMap->Add(item->Key, item->Value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment