By comparing the identities of two entities, this inversion control method handles the request to determine if those are equal.

The identity of each entity is obtained by the IdentityMembers property.

Namespace: Keystone.Carbonite.Linq
Assembly: Keystone.Carbonite.Linq (in Keystone.Carbonite.Linq.dll)

protected override bool OnAreEqual( 
TEntity leftEntity
TEntity rightEntity 
This language is not supported or no code example is available.



Type: TEntity

The left entity.


Type: TEntity

The right entity.

Return Value

true if the identities of the two entities are equal, false otherwise.
Exception type Condition


If a null reference (Nothing in Visual Basic) or empty value is given for the arguments.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6


Xamarin, Mono