IPdxInstance Equals Method Pivotal GemFire .NET Client Documentation
Returns true if the given object is equals to this instance. If is not a PdxInstance then it is not equal to this instance. NOTE: Even if is the result of calling GetObject  it will not be equal to this instance. Otherwise equality of two PdxInstances is determined as follows:
  • The domain class name must be equal for both PdxInstances
  • Each identity field must be equal.
If one of the instances does not have a field that the other one does then equals will assume it has the field with a default value. If a PdxInstance has marked identity fields using [!:IPdxWriter.MarkIdentityField] then only the marked identity fields are its identity fields. Otherwise all its fields are identity fields. An identity field is equal if all the following are true:
  • The field name is equal.
  • The field type is equal.
  • The field value is equal.
If a field's type is then its value must be deserialized to determine if it is equals. If the deserialized object is an array then all the array element is used to determine equality. Otherwise [!:Object.Equals] is used. If a field's type is then its value must be deserialized and all the array element is used to determine equality. For all other field types then the value does not need to be deserialized. Instead the serialized raw bytes are compared and used to determine equality. Note that any fields that have objects that do not override [!:Object.Equals] will cause equals to return false when you might have expected it to return true.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 8.1.0.0
Syntax

bool Equals(
	Object other
)

Parameters

other
Type: System Object
the other instance to compare to this.

Return Value

if this instance is equal to .
See Also