Determines whether a provided DependencyObject is equivalent to the current DependencyObject.
Public Overrides NotOverridable Function Equals ( _ obj As Object _ ) As Boolean
public override sealed bool Equals( Object obj )
public: virtual bool Equals( Object^ obj ) override sealed
abstract Equals : obj:Object -> bool override Equals : obj:Object -> bool
This implementation is reference equality only, and does not attempt to evaluate value equality of the contained properties.
DependencyObject overrides and then seals two basic Object methods: Equals and GetHashCode. The overrides call the Object implementations, resulting in an object equality behavior. The purpose of these deliberate overrides is to prevent derived classes from trying to define a value equality for a DependencyObject. Value equalities for DependencyObject will never be accurate because of the innate property value-changing capabilities of a DependencyObject and its dependency properties. This includes fundamental WPF features such as data binding and the WPF property system.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2