src/Shared/EntityFramework/Core/Query/InternalTrees/ConstantBaseOp.cs
// <summary>
// Two CostantBaseOps are equivalent if they are of the same
// derived type and have the same type and value.
// </summary>
// <param name="other"> the other Op </param>
// <returns> true, if these are equivalent (not a strict equality test) </returns>
Two CostantBaseOps are equivalent if they are of the same
derived type and have the same type and value.
Two CostantBaseOps are equivalent if they are of the same derived type and have the same type and value .
internal override bool IsEquivalent(Op other)
        {
            var otherConstant = other as ConstantBaseOp;
            return
                otherConstant != null &&
                OpType == other.OpType &&
                otherConstant.Type.EdmEquals(Type) &&
                ((otherConstant.Value == null && Value == null) || otherConstant.Value.Equals(Value));
        }
internal override bool IsEquivalent ( Op other ) { var otherConstant = other as ConstantBaseOp ; return otherConstant != null && OpType == other . OpType && otherConstant . Type . EdmEquals ( Type ) && ( ( otherConstant . Value == null && Value == null ) || otherConstant . Value . Equals ( Value ) ) ; }
Two CostantBaseOps are equivalent if they are of the same
derived type and have the same type and value.
Two CostantBaseOps are equivalent if they are of the same derived type and have the same type and value .
true, if these are equivalent (not a strict equality test)
true if these are equivalent ( not a strict equality test )
other
Op
the other Op
the other Op