DependencyPropertyDescriptor.GetHashCode Method ()

 
System_CAPS_noteNote

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

Returns the hash code for this DependencyPropertyDescriptor.

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

public override int GetHashCode()

Return Value

Type: System.Int32

A 32-bit signed integer hash code.

The hash code for DependencyPropertyDescriptor is based both on the identifier for a dependency property and on the type on which it is set. This implementation assures that a DependencyPropertyDescriptor does not improperly return the same hash code for properties that are inherited by the many possible derived classes, or for properties that are otherwise re-assigned through the property system.

.NET Framework
Available since 3.0
Return to top
Show: