ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (1)
132if (content.Count > 0)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
53while (stack.Count > 0)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
180if (matches.Count == 0)
src\Dependencies\PooledObjects\ArrayBuilder.cs (37)
44var result = new T[_builder.Count];
90if (Count == 0)
94else if (_builder.Capacity == Count)
149=> Count == 0;
216=> FindIndex(0, this.Count, match);
219=> FindIndex(startIndex, this.Count - startIndex, match);
236=> FindIndex(0, Count, match, arg);
239=> FindIndex(startIndex, Count - startIndex, match, arg);
349if (this.Count <= 1)
374=> Count == 0 ? default : Last();
391if (Count == 0)
405if (Count == 0)
410var result = new U[Count];
434if (Count == 0)
438else if (_builder.Capacity == Count)
487if (this.Count != 0)
508Debug.Assert(builder.Count == 0);
564if (this.Count == 1)
572if (this.Count == 0)
579var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer);
580for (var i = 0; i < Count; i++)
625Debug.Assert(start + length <= items.Count);
692Debug.Assert(limit <= Count);
704EnsureCapacity(Count + count);
717for (var i = 0; i < Count; i++)
732if (Count <= 1)
742for (int i = 1; i < Count; i++)
756var result = ArrayBuilder<S>.GetInstance(Count);
828switch (Count)
846var result = new TResult[Count];
864switch (Count)
882var result = new TResult[Count];
900switch (Count)
918var result = new TResult[Count];
935RemoveAt(Count - 1);
941if (Count > 0)
952=> this[Count - 1];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
157if (buffer.Count > 0)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (1)
203if (accessors.Count == 0)