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

◆ RemoveWhere()

int System.Collections.Generic.SortedSet< T >.RemoveWhere ( Predicate< T > match)
inlineinherited

Definition at line 1870 of file SortedSet.cs.

1871 {
1873 if (match2 == null)
1874 {
1875 throw new ArgumentNullException("match");
1876 }
1877 List<T> matches = new List<T>(Count);
1879 {
1880 if (match2(n.Item))
1881 {
1882 matches.Add(n.Item);
1883 }
1884 return true;
1885 });
1886 int num = 0;
1887 for (int num2 = matches.Count - 1; num2 >= 0; num2--)
1888 {
1889 if (Remove(matches[num2]))
1890 {
1891 num++;
1892 }
1893 }
1894 return num;
1895 }
virtual bool BreadthFirstTreeWalk(TreeWalkPredicate< T > action)
Definition SortedSet.cs:867

References System.Collections.Generic.SortedSet< T >.BreadthFirstTreeWalk(), System.Collections.Generic.SortedSet< T >.Count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Runtime.Serialization.Dictionary, System.match, and System.Collections.Generic.SortedSet< T >.Remove().