Thinktecture.Tools.Web.Services.CodeGeneration.PascalCaseConverter.DecorateCore C# (CSharp) Method

DecorateCore() private method

Contains the core logic of pascal case conversion.
private DecorateCore ( FilteredTypes types ) : void
types FilteredTypes
return void
        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);
            }
        }