Implemented interface members:
1 write to Count
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (1)
290
builder.
Count
= writeIndex;
41 references to Count
Microsoft.CodeAnalysis.InteractiveHost (41)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (11)
73
switch (items.
Count
)
91
var builder = ArrayBuilder<TResult>.GetInstance(items.
Count
);
113
switch (items.
Count
)
131
var builder = ArrayBuilder<TResult>.GetInstance(items.
Count
);
153
switch (items.
Count
)
171
var builder = ArrayBuilder<TResult>.GetInstance(items.
Count
);
174
builder.Add(map(item, builder.
Count
, arg));
201
builder.RemoveAt(builder.
Count
- 1);
207
if (builder.
Count
> 0)
219
return builder[builder.
Count
- 1];
278
for (var i = 0; i < builder.
Count
; i++)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
865
else if (resolvedParts.
Count
> 0)
src\Dependencies\PooledObjects\ArrayBuilder.cs (28)
41
var result = new T[_builder.
Count
];
87
if (
Count
== 0)
91
else if (_builder.Capacity ==
Count
)
146
=>
Count
== 0;
213
=> FindIndex(0, this.
Count
, match);
216
=> FindIndex(startIndex, this.
Count
- startIndex, match);
233
=> FindIndex(0,
Count
, match, arg);
236
=> FindIndex(startIndex,
Count
- startIndex, match, arg);
313
if (this.
Count
<= 1)
338
=>
Count
== 0 ? default : Last();
355
if (
Count
== 0)
369
if (
Count
== 0)
374
var tmp = ArrayBuilder<U>.GetInstance(
Count
);
398
if (
Count
== 0)
402
else if (_builder.Capacity ==
Count
)
442
if (this.
Count
!= 0)
463
Debug.Assert(builder.
Count
== 0);
519
if (this.
Count
== 1)
527
if (this.
Count
== 0)
534
var accumulator = new Dictionary<K, ArrayBuilder<T>>(
Count
, comparer);
535
for (var i = 0; i <
Count
; i++)
580
Debug.Assert(start + length <= items.
Count
);
646
Debug.Assert(limit <=
Count
);
658
EnsureCapacity(
Count
+ count);
671
for (var i = 0; i <
Count
; i++)
686
if (
Count
<= 1)
694
for (int i = 1; i <
Count
; i++)
708
var result = ArrayBuilder<S>.GetInstance(
Count
);
src\Dependencies\PooledObjects\ArrayBuilder.Enumerator.cs (1)
34
return _index < _builder.
Count
;