Click to Rate and Give Feedback
MSDN
MSDN Library
Microsoft Dynamics
Reference
Classes
Object Class
 Object.equal Method
Collapse All/Expand All Collapse All
Microsoft Dynamics AX 2009
Object.equal Method

Determines whether the specified object is equal to the current one.

public boolean equal(Object object)

Called

Parameter

Description

object

The object to compare with current object.

Returns true if the specified object is equal to the current object; otherwise, false.

The default implementation of the Object::equal method supports only reference equality. Derived classes can, however, override the Object::equal method to support value equality.

The following example compares the current instance with another object.

static void Object_Equal(Args _args)
{
    Object objA = new Object();
    Object objB = new Object();
    ;

    print objA.equal(objA);  // true.
    print objA.equal(objB);  // false.
    objA = objB;
    print objA.equal(objB);  // true.
 }
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker