IsMatch() private method

private IsMatch ( string key ) : bool
key string
return bool
Exemplo n.º 1
0
 internal bool TryGetAndRemoveAdditionalExplicitParameters(CommandLineArgument argument, out List <string> result)
 {
     foreach (var knownKey in AdditionalExplicitParameters.Keys)
     {
         if (argument.IsMatch(knownKey))
         {
             result = AdditionalExplicitParameters[knownKey];
             AdditionalExplicitParameters.Remove(knownKey);
             return(true);
         }
     }
     result = null;
     return(false);
 }
Exemplo n.º 2
0
 internal bool TryGetAndRemoveAdditionalExplicitParameters(CommandLineArgument argument, out List<string> result)
 {
     foreach(var knownKey in AdditionalExplicitParameters.Keys)
     {
         if(argument.IsMatch(knownKey))
         {
             result = AdditionalExplicitParameters[knownKey];
             AdditionalExplicitParameters.Remove(knownKey);
             return true;
         }
     }
     result = null;
     return false;
 }