Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetHashCode()

override int System.MulticastDelegate.GetHashCode ( )
inlinesealed

Definition at line 412 of file MulticastDelegate.cs.

413 {
415 {
416 return ValueType.GetHashCodeOfPtr(_methodPtr) ^ ValueType.GetHashCodeOfPtr(_methodPtrAux);
417 }
419 {
420 return @delegate.GetHashCode();
421 }
422 if (!(_invocationList is object[] array))
423 {
424 return base.GetHashCode();
425 }
426 int num = 0;
427 for (int i = 0; i < (int)_invocationCount; i++)
428 {
429 num = num * 33 + array[i].GetHashCode();
430 }
431 return num;
432 }
IntPtr _methodPtr
Definition Delegate.cs:17
IntPtr _methodPtrAux
Definition Delegate.cs:19

References System.MulticastDelegate._invocationCount, System.MulticastDelegate._invocationList, System.Delegate._methodPtr, System.Delegate._methodPtrAux, System.array, System.Runtime.Serialization.Dictionary, System.ValueType.GetHashCodeOfPtr(), and System.MulticastDelegate.IsUnmanagedFunctionPtr().