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

◆ ListEquals< T >()

static bool System.Dynamic.Utils.CollectionExtensions.ListEquals< T > ( this ReadOnlyCollection< T > first,
ReadOnlyCollection< T > second )
inlinestatic

Definition at line 84 of file CollectionExtensions.cs.

85 {
86 if (first == second)
87 {
88 return true;
89 }
90 int count = first.Count;
91 if (count != second.Count)
92 {
93 return false;
94 }
96 for (int i = 0; i != count; i++)
97 {
98 if (!@default.Equals(first[i], second[i]))
99 {
100 return false;
101 }
102 }
103 return true;
104 }

References System.count, System.Linq.first, and System.Linq.second.