Пример #1
0
        /// <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));
        }
Пример #2
0
        /// <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));
        }