Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            CultureAwareRandomizedComparer randomizedComparer = obj as CultureAwareRandomizedComparer;

            if (randomizedComparer == null || this._ignoreCase != randomizedComparer._ignoreCase || !this._compareInfo.Equals((object)randomizedComparer._compareInfo))
            {
                return(false);
            }
            return(this._entropy == randomizedComparer._entropy);
        }
Ejemplo n.º 2
0
        // Equals method for the comparer itself.
        public override bool Equals(Object obj)
        {
            CultureAwareRandomizedComparer comparer = obj as CultureAwareRandomizedComparer;

            if (comparer == null)
            {
                return(false);
            }
            return((this._ignoreCase == comparer._ignoreCase) && (this._compareInfo.Equals(comparer._compareInfo)) && (this._entropy == comparer._entropy));
        }
Ejemplo n.º 3
0
        // Token: 0x06000595 RID: 1429 RVA: 0x00013C34 File Offset: 0x00011E34
        public override bool Equals(object obj)
        {
            CultureAwareRandomizedComparer cultureAwareRandomizedComparer = obj as CultureAwareRandomizedComparer;

            return(cultureAwareRandomizedComparer != null && (this._ignoreCase == cultureAwareRandomizedComparer._ignoreCase && this._compareInfo.Equals(cultureAwareRandomizedComparer._compareInfo)) && this._entropy == cultureAwareRandomizedComparer._entropy);
        }