Implemented interface members:
2 writes to Count
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\Collections\ArrayBuilderExtensions.cs (1)
290
builder.
Count
= writeIndex;
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
239
_builder.
Count
--;
49 references to Count
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (49)
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\Collections\ImmutableArrayExtensions.cs (4)
762
var result = (builder.
Count
== array.Length) ? array : builder.ToImmutable();
802
if (comparer != null && builder.
Count
> 1)
1118
Debug.Assert(builder.
Count
> 1);
1189
Debug.Assert(builder.
Count
== count);
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
104
public readonly int Count => _builder?.
Count
?? _count;
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
865
else if (resolvedParts.
Count
> 0)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
42
int end = sortedFields.
Count
;
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
85
public int Count => _elements?.
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
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (1)
73
Contract.ThrowIfTrue(_index + values.
Count
> _values.Length);