Thinktecture.Tools.Web.Services.CodeGeneration.PascalCaseConverterBase.ConvertTypeName C# (CSharp) Method

ConvertTypeName() private method

Changes the given type's name to Pascal case.
private ConvertTypeName ( string &oldName ) : string
oldName string
return string
        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;
        }