Example #1
0
        public virtual bool Equals(object obj, IEqualityComparer comp)
        {
            if (this == null)
            {
                return(obj == null);
            }
            VectorListTransform vectorListTransform1 = obj as VectorListTransform;

            if (vectorListTransform1 == null)
            {
                return(false);
            }
            VectorListTransform vectorListTransform2 = vectorListTransform1;

            if ((!(this is VectorListTransform.Nary) ? 0 : 1) != (!(vectorListTransform2 is VectorListTransform.Nary) ? 0 : 1))
            {
                return(false);
            }
            if (this is VectorListTransform.Binary)
            {
                VectorListTransform.Binary binary1 = (VectorListTransform.Binary) this;
                VectorListTransform.Binary binary2 = (VectorListTransform.Binary)vectorListTransform2;
                return(LanguagePrimitives.HashCompare.GenericEqualityWithComparerIntrinsic <IBinaryTransform>(comp, (M0)binary1.item, (M0)binary2.item));
            }
            VectorListTransform.Nary nary1 = (VectorListTransform.Nary) this;
            VectorListTransform.Nary nary2 = (VectorListTransform.Nary)vectorListTransform2;
            return(LanguagePrimitives.HashCompare.GenericEqualityWithComparerIntrinsic <INaryTransform>(comp, (M0)nary1.item, (M0)nary2.item));
        }
Example #2
0
        public virtual int GetHashCode(IEqualityComparer comp)
        {
            if (this == null)
            {
                return(0);
            }
            if (this is VectorListTransform.Binary)
            {
                VectorListTransform.Binary binary = (VectorListTransform.Binary) this;
                int num = 0;
                return(LanguagePrimitives.HashCompare.GenericHashWithComparerIntrinsic <IBinaryTransform>(comp, (M0)binary.item) + ((num << 6) + (num >> 2)) - 1640531527);
            }
            VectorListTransform.Nary nary = (VectorListTransform.Nary) this;
            int num1 = 1;

            return(LanguagePrimitives.HashCompare.GenericHashWithComparerIntrinsic <INaryTransform>(comp, (M0)nary.item) + ((num1 << 6) + (num1 >> 2)) - 1640531527);
        }