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

Convert() public method

public Convert ( string &oldName ) : string
oldName string
return string
        public string Convert(out string oldName)
        {
            string newName = ConvertTypeName(out oldName);
            ConvertMembers();
            return newName;
        }

Usage Example

Beispiel #1
0
 /// <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);
     }
 }