By testing if the given entity is of the same type and has the same identifier of the current entity, this inversion control method handles the request to test two entities for equality.

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

protected virtual bool OnEquals( 
object objectToCompare 
This language is not supported or no code example is available.



Type: object

The object to compare.

Return Value

true if the two entities are of the same type and hold the same identifier, false otherwise.

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