/// <summary> /// CompareTo /// </summary> /// <param name="other"></param> /// <returns></returns> public int CompareTo(string other) { var ltOther = LanguageTagCache.Get <LanguageTag>(other); return(string.CompareOrdinal(LowerCaseLanguageTag, ltOther.LowerCaseLanguageTag)); }
/// <summary> /// Equals /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(string other) { var ltOther = LanguageTagCache.Get <LanguageTag>(other); return(0 == string.CompareOrdinal(LowerCaseLanguageTag, ltOther.LowerCaseLanguageTag)); }