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

ConvertMethod() private method

Contains the core logic for converting a method name to Pascal case.
private ConvertMethod ( CodeTypeMemberExtension memberExtension ) : void
memberExtension CodeTypeMemberExtension
return void
        private void ConvertMethod(CodeTypeMemberExtension memberExtension)
        {
            // Get a copy of the original name.
            string oldName = memberExtension.ExtendedObject.Name;
            // Change the method name to Pascal case.
            string newName = PascalCaseConverterHelper.GetPascalCaseMethodName(oldName);
            if (oldName != newName)
            {
                memberExtension.ExtendedObject.Name = newName;
                OnMethodNameChanged(memberExtension, oldName, newName);
            }
        }