GetPascalCaseConverter() 공개 정적인 메소드

public static GetPascalCaseConverter ( CodeTypeExtension typeExtension, ExtendedCodeDomTree code ) : PascalCaseConverterBase
typeExtension CodeTypeExtension
code ExtendedCodeDomTree
리턴 PascalCaseConverterBase
예제 #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);
     }
 }