5 references to CountPropertyName
Microsoft.CodeAnalysis.NetAnalyzers (5)
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.Fixer.cs (5)
42
|| (method != FirstPropertyName && method != LastPropertyName && method !=
CountPropertyName
))
67
if (method is LastPropertyName or
CountPropertyName
)
114
var countMemberAccess = generator.MemberAccessExpression(collectionSyntax.WithoutTrailingTrivia(),
CountPropertyName
);
122
if (methodName ==
CountPropertyName
)
124
return generator.MemberAccessExpression(adjustedCollectionSyntaxNoTrailingTrivia,
CountPropertyName
);