Click or drag to resize
IPdxInstanceEquals Method
Returns true if the given object is equals to this instance. If
other
is not a PdxInstance then it is not equal to this instance. NOTE: Even if
other
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
OBJECT
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
OBJECT[]
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: 9.0.6.18
Syntax
bool Equals(
	Object other
)

Parameters

other
Type: SystemObject
the other instance to compare to this.

Return Value

Type: Boolean
true
if this instance is equal to
other
.
See Also