Esempio n. 1
0
        ////////////////////////////////////////////////////////////////////////
        //
        //  Equals
        //
        //  Implements Object.Equals().  Returns a boolean indicating whether
        //  or not object refers to the same CultureInfo as the current instance.
        //
        ////////////////////////////////////////////////////////////////////////
        public override bool Equals(object obj)
        {
            if (obj is TextInfo that)
            {
                return(CultureName.Equals(that.CultureName));
            }

            return(false);
        }
Esempio n. 2
0
        ////////////////////////////////////////////////////////////////////////
        //
        //  Equals
        //
        //  Implements Object.Equals().  Returns a boolean indicating whether
        //  or not object refers to the same CultureInfo as the current instance.
        //
        ////////////////////////////////////////////////////////////////////////
        public override bool Equals(Object obj)
        {
            TextInfo that = obj as TextInfo;

            if (that != null)
            {
                return(CultureName.Equals(that.CultureName));
            }

            return(false);
        }
Esempio n. 3
0
 public bool Equals(TranslationInfo ti)
 {
     return((ti != null) ? CultureName.Equals(ti.CultureName, StringComparison.OrdinalIgnoreCase) : false);
 }
 public bool Equals(TranslationInfo ti)
 {
     return(!ReferenceEquals(ti, null) && CultureName.Equals(ti.CultureName, StringComparison.OrdinalIgnoreCase));
 }