DependencyPropertyDescriptor::GetHashCode Method ()

 

Returns the hash code for this DependencyPropertyDescriptor.

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

public:
virtual int GetHashCode() override

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: