Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 public bool ContainsTranslation(PhraseAndTranslation translation)
 {
     return(Translations.Contains(translation));
 }