Example #1
0
        public bool Equals(OeCacheContext x, OeCacheContext y)
        {
            var comparer = new OeCacheComparer(x.ConstantToParameterMapper);

            if (comparer.Compare(x, y))
            {
                y.ParameterValues = comparer.ParameterValues;
                return(true);
            }

            return(false);
        }
        public bool Equals(OeCacheContext x, OeCacheContext y)
        {
            var comparer = new OeCacheComparer(x.ConstantToParameterMapper, x.NavigationNextLink);

            if (comparer.Compare(x, y))
            {
                y.ParameterValues = comparer.ParameterValues;
                return(true);
            }

            y.ParameterValues = null;
            return(false);
        }
        public bool Equals([AllowNull] OeCacheContext x, [AllowNull] OeCacheContext y)
        {
            if (Object.ReferenceEquals(x, y))
            {
                return(true);
            }

            if (x == null || y == null)
            {
                return(false);
            }

            var comparer = new OeCacheComparer(x.ConstantToParameterMapper);

            if (comparer.Compare(x, y))
            {
                y.ParameterValues = comparer.ParameterValues;
                return(true);
            }

            return(false);
        }