Inheritance: StringComparer
Beispiel #1
0
        // Token: 0x0600058A RID: 1418 RVA: 0x00013AAC File Offset: 0x00011CAC
        public override bool Equals(object obj)
        {
            this.EnsureInitialization();
            CultureAwareComparer cultureAwareComparer = obj as CultureAwareComparer;

            return(cultureAwareComparer != null && this._ignoreCase == cultureAwareComparer._ignoreCase && this._compareInfo.Equals(cultureAwareComparer._compareInfo) && this._options == cultureAwareComparer._options);
        }
        // Equals method for the comparer itself.
        public override bool Equals(object obj)
        {
            CultureAwareComparer comparer = obj as CultureAwareComparer;

            return
                (comparer != null &&
                 _ignoreCase == comparer._ignoreCase &&
                 _compareInfo.Equals(comparer._compareInfo));
        }
Beispiel #3
0
        // Equals method for the comparer itself.
        public override bool Equals(object obj)
        {
            CultureAwareComparer comparer = obj as CultureAwareComparer;

            return
                (comparer != null &&
                 _options == comparer._options &&
                 _compareInfo.Equals(comparer._compareInfo));
        }
Beispiel #4
0
        // Equals method for the comparer itself.
        public override bool Equals(Object obj)
        {
            CultureAwareComparer comparer = obj as CultureAwareComparer;

            if (comparer == null)
            {
                return(false);
            }
            return((this._ignoreCase == comparer._ignoreCase) && (this._compareInfo.Equals(comparer._compareInfo)));
        }
Beispiel #5
0
        public override bool Equals(object obj)
        {
            CultureAwareComparer cultureAwareComparer = obj as CultureAwareComparer;

            if (cultureAwareComparer == null || this._ignoreCase != cultureAwareComparer._ignoreCase)
            {
                return(false);
            }
            return(this._compareInfo.Equals((object)cultureAwareComparer._compareInfo));
        }
        // Equals method for the comparer itself.
        public override bool Equals(Object obj)
        {
            EnsureInitialization();
            CultureAwareComparer comparer = obj as CultureAwareComparer;

            if (comparer == null)
            {
                return(false);
            }
            return((this._ignoreCase == comparer._ignoreCase) && (this._compareInfo.Equals(comparer._compareInfo) &&
                                                                  this._options == comparer._options));
        }