コード例 #1
0
ファイル: Program.cs プロジェクト: wayneqs/claims
 private static void ReportAndQuitIfErrors(ErrorCollector collector, string inputFilePath, string errorFilename)
 {
     if (collector.ContainsErrors) // so check for errors now
     {
         collector.WriteTo(BuildPathFromInputPath(inputFilePath, errorFilename));
         System.Console.WriteLine(
             "Errors detected in input file. Please check the error report and retry once you have figured it out.");
         System.Console.WriteLine("Press any key to quit...");
         System.Console.ReadKey();
         Environment.Exit((int) ExitCode.InvalidInputFile);
     }
 }