Delegate.GetHashCode Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a hash code for the delegate.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| MethodAccessException | Application code attempts to access this member late-bound, for example, by using the Type.InvokeMember method. |
The return value of this method must not be persisted for two reasons. First, the hash function of a class might be altered to generate a better distribution, rendering any values from the old hash function useless. Second, the default implementation of this class does not guarantee that the same value will be returned by different instances.