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

◆ Equals() [2/3]

bool System.Diagnostics.Metrics.ObjectSequenceMany.Equals ( ObjectSequenceMany other)
inline

Definition at line 12 of file ObjectSequenceMany.cs.

13 {
14 if (_values.Length != other._values.Length)
15 {
16 return false;
17 }
18 for (int i = 0; i < _values.Length; i++)
19 {
20 object obj = _values[i];
21 object obj2 = other._values[i];
22 if (obj == null)
23 {
24 if (obj2 != null)
25 {
26 return false;
27 }
28 }
29 else if (!obj.Equals(obj2))
30 {
31 return false;
32 }
33 }
34 return true;
35 }

References System.Diagnostics.Metrics.ObjectSequenceMany._values, System.obj, and System.other.

Referenced by System.Diagnostics.Metrics.ObjectSequenceMany.Equals().