private static void Execute_CommandLine(CodeTypeDeclaration pCodeType, List <CommandLineArg> listCommandLine) { for (int i = 0; i < listCommandLine.Count; i++) { ECommandLine eCommandLine = (ECommandLine)Enum.Parse(typeof(ECommandLine), listCommandLine[i].strArgName); switch (eCommandLine) { case ECommandLine.comment: pCodeType.AddComment(listCommandLine[i].strArgValue); break; case ECommandLine.baseis: pCodeType.AddBaseInterface(listCommandLine[i].strArgValue); break; case ECommandLine.ispartial: pCodeType.IsPartial = true; break; default: break; } } }