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

◆ GetHashCode() [2/2]

int IStructuralEquatable. System.Array.GetHashCode ( IEqualityComparer comparer)
inlineprivate

Definition at line 1306 of file Array.cs.

1307 {
1308 if (comparer == null)
1309 {
1310 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.comparer);
1311 }
1312 HashCode hashCode = default(HashCode);
1313 for (int i = ((Length >= 8) ? (Length - 8) : 0); i < Length; i++)
1314 {
1315 hashCode.Add(comparer.GetHashCode(GetValue(i)));
1316 }
1317 return hashCode.ToHashCode();
1318 }
object? GetValue(params int[] indices)
Definition Array.cs:980
int Length
Definition Array.cs:430

References System.HashCode.Add(), System.comparer, System.Array.GetValue(), System.Array.Length, System.ThrowHelper.ThrowArgumentNullException(), and System.HashCode.ToHashCode().