/**
  * Given an argument specifier for a compiler argument, try and find that argument
  */
 private bool TryGetCompilerArgument(string inputArgument, out AbstractCompilerArgument compilerArgument)
 {
     try
     {
         compilerArgument = availableCompilerArguments.First(arg => arg.GetSpecifier() == inputArgument);
         return(true);
     } catch (InvalidOperationException)
     {
         compilerArgument = null;
         return(false);
     }
 }
Esempio n. 2
0
 public AbstractArgumentTest()
 {
     compilerArgument = new ConfigFileCompilerArgument();
 }