System.Runtime.Serialization.SurrogateHashtable.KeyEquals C# (CSharp) Method

KeyEquals() protected method

protected KeyEquals ( Object key, Object item ) : bool
key Object
item Object
return bool
    	protected override bool KeyEquals(Object key, Object item){
            SurrogateKey givenValue = (SurrogateKey)item;
            SurrogateKey presentValue = (SurrogateKey)key;
            return presentValue.m_type == givenValue.m_type &&
                   (presentValue.m_context.m_state & givenValue.m_context.m_state) == givenValue.m_context.m_state &&
                   presentValue.m_context.Context == givenValue.m_context.Context;
        }
    }