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

◆ Equals() [1/2]

bool IStructuralEquatable. System.Array.Equals ( object other,
IEqualityComparer comparer )
inlineprivate

Definition at line 1280 of file Array.cs.

1281 {
1282 if (other == null)
1283 {
1284 return false;
1285 }
1286 if (this == other)
1287 {
1288 return true;
1289 }
1290 if (!(other is Array array) || array.Length != Length)
1291 {
1292 return false;
1293 }
1294 for (int i = 0; i < array.Length; i++)
1295 {
1296 object value = GetValue(i);
1297 object value2 = array.GetValue(i);
1298 if (!comparer.Equals(value, value2))
1299 {
1300 return false;
1301 }
1302 }
1303 return true;
1304 }
object? GetValue(params int[] indices)
Definition Array.cs:980
int Length
Definition Array.cs:430

References System.array, System.comparer, System.Array.GetValue(), System.Array.Length, System.other, and System.value.