7 references to Count
Microsoft.CodeAnalysis.NetAnalyzers (7)
Microsoft.NetCore.Analyzers\Performance\UseCountProperly.cs (7)
34
private const string Count = nameof(
Count
);
114
IEnumerable<IMethodSymbol>? methods = namedType?.GetMembers(
Count
).OfType<IMethodSymbol>().Where(m => m.Parameters.Length <= 2);
121
methods = namedType?.GetMembers(
Count
).OfType<IMethodSymbol>().Where(m => m.Parameters.Length <= 2);
241
if (propertyName is not
Count
and not Length ||
391
propertyName =
Count
;
514
else if (TypeContainsVisibleProperty(context, type,
Count
, SpecialType.System_Int32, SpecialType.System_UInt64, out _))
516
ReportCA1829(context,
Count
, invocationOperation);