LocalValueEntry.Inequality Operator (LocalValueEntry, LocalValueEntry)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Compares the specified LocalValueEnumerator instances to determine whether they are different.

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

This implementation compares the values of the Property and Value components of a LocalValueEntry. The Property component of a LocalValueEntry is always a value type, so this comparison will always be a bitwise 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
Available since 3.0
Return to top