/// <summary>
 /// Gets a specified trigger from the collection.
 /// </summary>
 /// <param name="index">The index of the trigger to be retrieved.</param>
 /// <returns>Specialized <see cref="Trigger"/> instance.</returns>
 public Trigger this[int index]
 {
     get
     {
         if (v2Coll != null)
         {
             return(Trigger.CreateTrigger(v2Coll[++index], this.v2Def));
         }
         return(Trigger.CreateTrigger(v1Task.GetTrigger((ushort)index)));
     }
     set
     {
         if (this.Count <= index)
         {
             throw new ArgumentOutOfRangeException("index", index, "Index is not a valid index in the TriggerCollection");
         }
         RemoveAt(index);
         Insert(index, value);
     }
 }