Exemple #1
0
 private async Task GenerateCodeFile(TypeModel type, DirectoryInfo di)
 {
     if (type is ClassModel @class)
     {
         await _codeGenerator.GenerateClassFile(@class, di);
     }
     else if (type is InterfaceModel @interface)
     {
         await _codeGenerator.GenerateInterfaceFile(@interface, di);
     }
     else if (type is EnumerationModel enumeration)
     {
         await _codeGenerator.GenerateEnumFile(enumeration, di);
     }
 }