LocalValueEntry::Equality Operator (LocalValueEntry, LocalValueEntry)
Compares the specified LocalValueEntry instances to determine whether they are the same.
Assembly: WindowsBase (in WindowsBase.dll)
Parameters
- obj1
-
Type:
System.Windows::LocalValueEntry
The first instance to compare.
- obj2
-
Type:
System.Windows::LocalValueEntry
The second instance to compare.
Return Value
Type: System::Booleantrue if the obj1 LocalValueEntry is equal to the obj2 LocalValueEntry; otherwise, false.
This Equality implementation compares the values of the Property, and potentially compares the values of Value. The Property component of a LocalValueEntry is always a value type, so this comparison will always be a bitwise value comparison. For the Value component, this implementation employs a bitwise comparison if it is a value type.
For locally set properties that have reference types, the behavior is deferred to that type's equality determination mechanisms, because it uses the == operator on the two values internally. By default, this is a reference equality of the values.
Available since 3.0