示例#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.");
     }
 }
示例#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.");
     }
 }