Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }