Ejemplo n.º 1
0
 /// <summary>
 /// Adds the gerund rule.
 /// </summary>
 /// <param name="rule">The rule.</param>
 protected void AddPastRule(string rule)
 {
     PastRules.Add(new Rule(rule, string.Empty));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Determines whether the specified input is past.
 /// </summary>
 /// <param name="input">The input.</param>
 /// <returns><c>true</c> if the specified input is past; otherwise, <c>false</c>.</returns>
 public bool IsPast(string input)
 {
     return(PastRules.Any(x => x.CanApply(input)));
 }