public DateTime GetDate(Match match) { if (string.IsNullOrEmpty(match.Groups [token].Value) || !Translations.Contains(match.Groups [token].Value, new StringInsensitiveComparer())) { return(DateTime.MinValue); } return(GetDate(GetCardinal(match))); }
/// <summary> /// Determines whether the <see cref="T:System.Collections.Generic.ICollection`1" /> contains a specific value. /// </summary> /// <returns> /// true if <paramref name="item" /> is found in the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, false. /// </returns> /// <param name="item"> /// The object to locate in the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </param> public bool Contains(KeyValuePair <string, string> item) { return(Translations.Contains(item)); }
public bool ContainsTranslation(PhraseAndTranslation translation) { return(Translations.Contains(translation)); }