Example #1
0
 /// <summary>
 /// Adds the override to the internal list.
 /// </summary>
 /// <param name="override">The override.</param>
 public void AddOverride(Override @override)
 {
     if (_productions.ContainsKey(@override.Winner) && _productions.ContainsKey(@override.Loser))
     {
         _overrides.Add(@override);
     }
     else
     {
         throw new ApplicationException("Productions must be defined prior to Override definition.");
     }
 }
Example #2
0
 /// <summary>
 /// Adds the override to the internal list.
 /// </summary>
 /// <param name="override">The override.</param>
 public void AddOverride(Override @override)
 {
     if (_productions.ContainsKey(@override.Winner) && _productions.ContainsKey(@override.Loser))
     {
         _overrides.Add(@override);
     }
     else
     {
         throw new ApplicationException("Productions must be defined prior to Override definition.");
     }
 }