LocalValueEntry.Equality Operator

Compares the specified LocalValueEntry instances to determine whether they are the same.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public static bool operator ==(
	LocalValueEntry obj1,
	LocalValueEntry obj2


Type: System.Windows.LocalValueEntry

The first instance to compare.

Type: System.Windows.LocalValueEntry

The second instance to compare.

Return Value

Type: System.Boolean
true 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft