/// <summary>
/// Contains the core logic of pascal case conversion.
/// </summary>
private void DecorateCore(FilteredTypes types)
{
// Perform this action for all extensions (ext) in the data contracts list.
foreach (CodeTypeExtension typeExtension in types)
{
// Get the converter for this type.
PascalCaseConverterBase converter = PascalCaseConverterFactory.GetPascalCaseConverter(typeExtension, code);
// Execute the converter.
string oldName;
string newName = converter.Convert(out oldName);
UpdateTypeReferences(oldName, newName);
}
}