/// <summary>Returns the hash code for this instance.</summary> /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns> public override int GetHashCode() { unchecked { var hc = 17L; hc = (hc * 23) + base.GetHashCode(); hc = (hc * 23) + ExpressionType.GetHashCode(); hc = (hc * 23) + ExpressionSource.GetHashCode(); if (Name != null) { hc = (hc * 23) + StringComparer.Ordinal.GetHashCode(Name); } hc = (hc * 23) + Pointer.GetHashCode(); return(((int)(hc >> 32)) ^ (int)hc); } }
public override int GetHashCode() { var hashCode = -1908471857; hashCode = hashCode * -1521134295 + EqualityComparer <ODataExpression> .Default.GetHashCode(_functionCaller); hashCode = hashCode * -1521134295 + EqualityComparer <ODataExpression> .Default.GetHashCode(_left); hashCode = hashCode * -1521134295 + EqualityComparer <ODataExpression> .Default.GetHashCode(_right); hashCode = hashCode * -1521134295 + _operator.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <Type> .Default.GetHashCode(_conversionType); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Reference); hashCode = hashCode * -1521134295 + EqualityComparer <object> .Default.GetHashCode(Value); hashCode = hashCode * -1521134295 + EqualityComparer <ExpressionFunction> .Default.GetHashCode(Function); hashCode = hashCode * -1521134295 + IsValueConversion.GetHashCode(); hashCode = hashCode * -1521134295 + IsNull.GetHashCode(); return(hashCode); }