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

◆ Combine< T1, T2, T3 >()

static int System.HashCode.Combine< T1, T2, T3 > ( T1 value1,
T2 value2,
T3 value3 )
inlinestatic

Definition at line 57 of file HashCode.cs.

58 {
59 uint queuedValue = (uint)(value1?.GetHashCode() ?? 0);
60 uint queuedValue2 = (uint)(value2?.GetHashCode() ?? 0);
61 uint queuedValue3 = (uint)(value3?.GetHashCode() ?? 0);
62 uint num = MixEmptyState();
63 num += 12;
64 num = QueueRound(num, queuedValue);
65 num = QueueRound(num, queuedValue2);
66 num = QueueRound(num, queuedValue3);
67 return (int)MixFinal(num);
68 }
static uint QueueRound(uint hash, uint queuedValue)
Definition HashCode.cs:186
static uint MixEmptyState()
Definition HashCode.cs:197
override int GetHashCode()
Definition HashCode.cs:287
static uint MixFinal(uint hash)
Definition HashCode.cs:203

References System.HashCode.GetHashCode(), System.HashCode.MixEmptyState(), System.HashCode.MixFinal(), and System.HashCode.QueueRound().