예제 #1
0
		bool AddSource (ArgumentEnumerator ae, string argument)
		{
			foreach (ArgumentSource source in sources) {
				IEnumerable<string> replacement;
				if (!source.GetArguments (argument, out replacement))
					continue;
				ae.Add (replacement);
				return true;
			}
			return false;
		}
예제 #2
0
 private bool AddSource(ArgumentEnumerator ae, string argument)
 {
     foreach (ArgumentSource source in Sources)
     {
         if (!source.GetArguments(argument, out IEnumerable <string> replacement))
         {
             continue;
         }
         ae.Add(replacement);
         return(true);
     }
     return(false);
 }