src/Shared/EntityFramework/Internal/EntityEntries/InternalEntityEntry.cs
// <summary>
// Determines whether the specified <see cref="InternalEntityEntry" /> is equal to this instance.
// Two <see cref="InternalEntityEntry" /> instances are considered equal if they are both entries for
// the same entity on the same <see cref="DbContext" />.
// </summary>
// <param name="other">
// The <see cref="InternalEntityEntry" /> to compare with this instance.
// </param>
// <returns>
// <c>true</c> if the specified <see cref="InternalEntityEntry" /> is equal to this instance; otherwise, <c>false</c> .
// </returns>
Determines whether the specified  is equal to this instance.
Two  instances are considered equal if they are both entries for
the same entity on the same .
Determines whether the specified is equal to this instance . Two instances are considered equal if they are both entries for the same entity on the same .
public bool Equals(InternalEntityEntry other)
        {
            if (ReferenceEquals(this, other))
            {
                return true;
            }
            return !ReferenceEquals(null, other) &&
                   ReferenceEquals(_entity, other._entity) &&
                   ReferenceEquals(_internalContext, other._internalContext);
        }
public bool Equals ( InternalEntityEntry other ) { if ( ReferenceEquals ( this , other ) ) { return true ; } return ! ReferenceEquals ( null , other ) && ReferenceEquals ( _entity , other . _entity ) && ReferenceEquals ( _internalContext , other . _internalContext ) ; }
Determines whether the specified  is equal to this instance.
Determines whether the specified is equal to this instance .
true is equal to this instance; otherwise, false
true is equal to this instance ; otherwise false
other
InternalEntityEntry
The  to compare with this instance.
The to compare with this instance .