private string ConvertTypeName(out string oldName)
{
// Holds the original type name.
oldName = this.typeExtension.ExtendedObject.Name;
// Change the type name to Pascal case.
string newName = PascalCaseConverterHelper.GetPascalCaseName(oldName);
if (oldName != newName)
{
this.typeExtension.ExtendedObject.Name = newName;
OnTypeNameChanged(this.typeExtension, oldName, newName);
}
return newName;
}