コード例 #1
0
 public override void ExitParameter(ArgumentsParser.ParameterContext context)
 {
     string[] existingValues;
     if (currentKey == null)
     {
         Trace.TraceError("currentKey is null in ExitParameter");
         return;
     }
     if (optionsDic.TryGetValue(currentKey, out existingValues))//to support multiple instances of the same parameter
     {
         currentValues.InsertRange(0, existingValues);
         optionsDic[currentKey] = currentValues.ToArray();
     }
     else
     {
         optionsDic.Add(currentKey, currentValues.ToArray());
     }
 }
コード例 #2
0
 public override void EnterParameter(ArgumentsParser.ParameterContext context)
 {
     currentValues = new List <string>();
 }