src/Shared/EntityFramework/Core/Common/QueryCache/LinqQueryCacheKey.cs
// <summary>
// Determines equality of two cache keys based on cache context values
// </summary>
Determines equality of two cache keys based on cache context values
Determines equality of two cache keys based on cache context values
public override bool Equals(object otherObject)
        {
            DebugCheck.NotNull(otherObject);
            if (typeof(LinqQueryCacheKey) != otherObject.GetType())
            {
                return false;
            }
            var otherObjectQueryCacheKey = (LinqQueryCacheKey)otherObject;
            return (_parameterCount == otherObjectQueryCacheKey._parameterCount) &&
                   (_mergeOption == otherObjectQueryCacheKey._mergeOption) &&
                   (_streaming == otherObjectQueryCacheKey._streaming) &&
                   Equals(otherObjectQueryCacheKey._expressionKey, _expressionKey) &&
                   Equals(otherObjectQueryCacheKey._includePathsToken, _includePathsToken) &&
                   Equals(otherObjectQueryCacheKey._parametersToken, _parametersToken) &&
                   Equals(otherObjectQueryCacheKey._resultType, _resultType) &&
                   Equals(otherObjectQueryCacheKey._useCSharpNullComparisonBehavior, _useCSharpNullComparisonBehavior);
        }
public override bool Equals ( object otherObject ) { DebugCheck . NotNull ( otherObject ) ; if ( typeof ( LinqQueryCacheKey ) != otherObject . GetType ( ) ) { return false ; } var otherObjectQueryCacheKey = ( LinqQueryCacheKey ) otherObject ; return ( _parameterCount == otherObjectQueryCacheKey . _parameterCount ) && ( _mergeOption == otherObjectQueryCacheKey . _mergeOption ) && ( _streaming == otherObjectQueryCacheKey . _streaming ) && Equals ( otherObjectQueryCacheKey . _expressionKey , _expressionKey ) && Equals ( otherObjectQueryCacheKey . _includePathsToken , _includePathsToken ) && Equals ( otherObjectQueryCacheKey . _parametersToken , _parametersToken ) && Equals ( otherObjectQueryCacheKey . _resultType , _resultType ) && Equals ( otherObjectQueryCacheKey . _useCSharpNullComparisonBehavior , _useCSharpNullComparisonBehavior ) ; }
Determines equality of two cache keys based on cache context values
Determines equality of two cache keys based on cache context values
// also use result type...
otherObject
object