/** * 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); } }
public AbstractArgumentTest() { compilerArgument = new ConfigFileCompilerArgument(); }