/// <summary> /// Checks whether the given TLD is in the List <see cref="TLDs"/>. /// </summary> /// <param name="tld">The given TLD.</param> /// <param name="timeSpan">Timespan to wait for Reload data.</param> /// <returns><c>true</c> if listed, otherwise <c>false</c>.</returns> public static bool StaticCheckTLD(string tld, TimeSpan timeSpan) { if (timeSpan != default) { ReloadData(timeSpan); } return(TLDs.Contains(tld.Trim().ToUpper())); }
/// <summary> /// Checks whether the given TLD is in the List <see cref="TLDs"/>. /// </summary> /// <param name="tld">The given TLD.</param> /// <returns><c>true</c> if listed, otherwise <c>false</c>.</returns> public static bool StaticCheckTLD(string tld) { return(TLDs.Contains(tld.Trim().ToUpper())); }