コード例 #1
0
        public override int GetSemanticHashCode(ExpressionEqualityComparer comparer)
        {
            unchecked
            {
                var hash = FunctionName.GetHashCode();

                hash = (hash * 16777619) ^ IsDistinct.GetHashCode();
                hash = (hash * 16777619) ^ IsNullable.GetHashCode();

                return(hash);
            }
        }
コード例 #2
0
        public int GetSemanticHashCode(ExpressionEqualityComparer comparer)
        {
            unchecked
            {
                var hash = comparer.GetHashCode(Projection);

                hash = (hash * 16777619) ^ comparer.GetHashCode(Table);
                hash = (hash * 16777619) ^ comparer.GetHashCode(Predicate);
                hash = (hash * 16777619) ^ comparer.GetHashCode(OrderBy);
                hash = (hash * 16777619) ^ comparer.GetHashCode(Offset);
                hash = (hash * 16777619) ^ comparer.GetHashCode(Limit);
                hash = (hash * 16777619) ^ comparer.GetHashCode(Grouping);
                hash = (hash * 16777619) ^ IsDistinct.GetHashCode();
                hash = (hash * 16777619) ^ IsWindowed.GetHashCode();

                return(hash);
            }
        }