Implemented interface members:
39 references to Count
Microsoft.CodeAnalysis.PooledObjects.Package (39)
ArrayBuilder.cs (38)
43
var result = new T[_builder.
Count
];
89
if (
Count
== 0)
93
else if (_builder.Capacity ==
Count
)
148
=>
Count
== 0;
215
=> FindIndex(0, this.
Count
, match);
218
=> FindIndex(startIndex, this.
Count
- startIndex, match);
235
=> FindIndex(0,
Count
, match, arg);
238
=> FindIndex(startIndex,
Count
- startIndex, match, arg);
334
if (this.
Count
<= 1)
359
=>
Count
== 0 ? default : Last();
376
if (
Count
== 0)
390
if (
Count
== 0)
395
var tmp = ArrayBuilder<U>.GetInstance(
Count
);
419
if (
Count
== 0)
423
else if (_builder.Capacity ==
Count
)
472
if (this.
Count
!= 0)
493
Debug.Assert(builder.
Count
== 0);
549
if (this.
Count
== 1)
557
if (this.
Count
== 0)
564
var accumulator = new Dictionary<K, ArrayBuilder<T>>(
Count
, comparer);
565
for (var i = 0; i <
Count
; i++)
610
Debug.Assert(start + length <= items.
Count
);
669
Debug.Assert(limit <=
Count
);
681
EnsureCapacity(
Count
+ count);
694
for (var i = 0; i <
Count
; i++)
709
if (
Count
<= 1)
719
for (int i = 1; i <
Count
; i++)
733
var result = ArrayBuilder<S>.GetInstance(
Count
);
805
switch (
Count
)
823
var builder = ArrayBuilder<TResult>.GetInstance(
Count
);
843
switch (
Count
)
861
var builder = ArrayBuilder<TResult>.GetInstance(
Count
);
881
switch (
Count
)
899
var builder = ArrayBuilder<TResult>.GetInstance(
Count
);
902
builder.Add(map(item, builder.
Count
, arg));
918
RemoveAt(
Count
- 1);
924
if (
Count
> 0)
935
=> this[
Count
- 1];
ArrayBuilder.Enumerator.cs (1)
36
return _index < _builder.
Count
;