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

◆ SameElements< T >() [2/2]

static bool System.Dynamic.Utils.ExpressionUtils.SameElements< T > ( ref IEnumerable< T > replacement,
IReadOnlyList< T > current )
inlinestaticpackage
Type Constraints
T :class 

Definition at line 191 of file ExpressionUtils.cs.

191 : class
192 {
193 if (replacement == current)
194 {
195 return true;
196 }
197 if (replacement == null)
198 {
199 return current.Count == 0;
200 }
202 if (collection == null)
203 {
204 collection = (ICollection<T>)(replacement = replacement.ToReadOnly());
205 }
206 return SameElementsInCollection(collection, current);
207 }

References System.collection.