Esempio n. 1
0
        // Equals method for the comparer itself.
        public override bool Equals(Object obj)
        {
            OrdinalRandomizedComparer comparer = obj as OrdinalRandomizedComparer;

            if (comparer == null)
            {
                return(false);
            }
            return((this._ignoreCase == comparer._ignoreCase) && (this._entropy == comparer._entropy));
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            OrdinalRandomizedComparer randomizedComparer = obj as OrdinalRandomizedComparer;

            if (randomizedComparer == null || this._ignoreCase != randomizedComparer._ignoreCase)
            {
                return(false);
            }
            return(this._entropy == randomizedComparer._entropy);
        }
        // Token: 0x060005A5 RID: 1445 RVA: 0x00013E8C File Offset: 0x0001208C
        public override bool Equals(object obj)
        {
            OrdinalRandomizedComparer ordinalRandomizedComparer = obj as OrdinalRandomizedComparer;

            return(ordinalRandomizedComparer != null && this._ignoreCase == ordinalRandomizedComparer._ignoreCase && this._entropy == ordinalRandomizedComparer._entropy);
        }