Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetHashCode()

override int System.Delegate.GetHashCode ( )
inline

Definition at line 109 of file Delegate.cs.

110 {
111 if (_methodPtrAux == IntPtr.Zero)
112 {
113 return ((_target != null) ? (RuntimeHelpers.GetHashCode(_target) * 33) : 0) + GetType().GetHashCode();
114 }
115 return GetType().GetHashCode();
116 }
object _target
Definition Delegate.cs:13
IntPtr _methodPtrAux
Definition Delegate.cs:19
override int GetHashCode()
Definition Delegate.cs:109

References System.Delegate._methodPtrAux, System.Delegate._target, System.Runtime.CompilerServices.RuntimeHelpers.GetHashCode(), and System.IntPtr.Zero.