src/Shared/EntityFramework/Core/Query/InternalTrees/NodeInfo.cs
// <summary>
// Computes the hash value for this node. The hash value is simply the
// local hash value for this node info added with the hash values of the child
// nodes
// </summary>
// <param name="cmd"> current command </param>
// <param name="n"> current node </param>
Computes the hash value for this node. The hash value is simply the
local hash value for this node info added with the hash values of the child
nodes
Computes the hash value for this node . The hash value is simply the local hash value for this node info added with the hash values of the child nodes
internal virtual void ComputeHashValue(Command cmd, Node n)
        {
            m_hashValue = 0;
            foreach (var chi in n.Children)
            {
                var chiNodeInfo = cmd.GetNodeInfo(chi);
                m_hashValue ^= chiNodeInfo.HashValue;
            }
            m_hashValue = (m_hashValue << 4) ^ ((int)n.Op.OpType); 
            m_hashValue = (m_hashValue << 4) ^ GetHashValue(m_externalReferences);
        }
internal virtual void ComputeHashValue ( Command cmd , Node n ) { m_hashValue = 0 ; foreach ( var chi in n . Children ) { var chiNodeInfo = cmd . GetNodeInfo ( chi ) ; m_hashValue ^= chiNodeInfo . HashValue ; } m_hashValue = ( m_hashValue << 4 ) ^ ( ( int ) n . Op . OpType ) ; m_hashValue = ( m_hashValue << 4 ) ^ GetHashValue ( m_externalReferences ) ; }
Computes the hash value for this node.
Computes the hash value for this node .
// include the optype somehow // Now compute my local hash value
cmd
Command
None
n
Node
None