45 references to Count
System.Xaml (45)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (45)
323if (oldList.Count == SIZE) 338SetCount(oldList.Count); 580int oldCount = oldList.Count; 583SetCount(oldList.Count); 619SetCount(oldList.Count); 626int oldCount = oldList.Count; 627SetCount(oldList.Count); 1040int oldCount = oldList.Count; 1043SetCount(oldList.Count); 1103int oldCount = oldList.Count; 1106SetCount(oldList.Count); 1142int oldCount = oldList.Count; 1143SetCount(oldList.Count); 1416for (int index = 0; index < oldList.Count; ++index) 1431int oldCount = oldList.Count; 1432SetCount(oldList.Count); 1486int oldCount = oldList.Count; 1489SetCount(oldList.Count); 1594for (int i=_validItemCount, n=_store.Count; i<n; ++i) 1695return _listStore.Count; 1707if ((_listStore is not null) && ((index < _listStore.Count) && (index >= 0))) 1718if ((_listStore is not null) && ((index < _listStore.Count) && (index >= 0))) 1777ArrayItemList<T> newStore = new ArrayItemList<T>(_listStore.Count + 1); 1793return _listStore.Count - 1; 1803if ((_listStore is not null) && (_listStore.Count > 0)) 1813if ((_listStore is not null) && (_listStore.Count > 0)) 1823if ((index == 0) || ((_listStore is not null) && ((index <= _listStore.Count) && (index >= 0)))) 1828if ((_listStore is not null) && (_listStore.Count == _listStore.Capacity)) 1846if ((_listStore is not null) && (_listStore.Count > 0)) 1856if ((_listStore is not null) && ((index < _listStore.Count) && (index >= 0))) 1887if ((_listStore is not null) && (_listStore.Count > 0)) 1897if ((_listStore is not null) && (_listStore.Count > 0)) 2075return _listStore.Count; 2087if ((_listStore is not null) && ((index < _listStore.Count) && (index >= 0))) 2098if ((_listStore is not null) && ((index < _listStore.Count) && (index >= 0))) 2157ArrayItemList<T> newStore = new ArrayItemList<T>(_listStore.Count + 1); 2173return _listStore.Count - 1; 2183if ((_listStore is not null) && (_listStore.Count > 0)) 2193if ((_listStore is not null) && (_listStore.Count > 0)) 2203if ((index == 0) || ((_listStore is not null) && ((index <= _listStore.Count) && (index >= 0)))) 2208if ((_listStore is not null) && (_listStore.Count == _listStore.Capacity)) 2226if ((_listStore is not null) && (_listStore.Count > 0)) 2236if ((_listStore is not null) && ((index < _listStore.Count) && (index >= 0))) 2267if ((_listStore is not null) && (_listStore.Count > 0)) 2277if ((_listStore is not null) && (_listStore.Count > 0))