/// <summary>
 /// Gets or sets a an action at the specified index.
 /// </summary>
 /// <value>The zero-based index of the action to get or set.</value>
 public Action this[int index]
 {
     get
     {
         if (v2Coll != null)
         {
             return(Action.CreateAction(v2Coll[++index]));
         }
         if (index == 0)
         {
             return(new ExecAction(v1Task.GetApplicationName(), v1Task.GetParameters(), v1Task.GetWorkingDirectory()));
         }
         throw new ArgumentOutOfRangeException();
     }
     set
     {
         if (this.Count <= index)
         {
             throw new ArgumentOutOfRangeException("index", index, "Index is not a valid index in the ActionCollection");
         }
         RemoveAt(index);
         Insert(index, value);
     }
 }