Fix warnings found with new analyzer CA1860: Prefer Length/Count/IsEmpty property...
authorBuyaa Namnan <bunamnan@microsoft.com>
Tue, 7 Feb 2023 12:59:20 +0000 (04:59 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Feb 2023 12:59:20 +0000 (13:59 +0100)
commit6450398d885ffe65bce3f7c38588dee197738b43
treebda6e023fdee93fe2042eff5ebc31ac990ca73ff
parente71a4fb10d7ea6b502dd5efe7a8fcefa2b9c1550
Fix warnings found with new analyzer CA1860: Prefer Length/Count/IsEmpty property check over Any() (#81583)

Co-authored-by: Marek Safar <marek.safar@gmail.com>
17 files changed:
eng/CodeAnalysis.src.globalconfig
eng/CodeAnalysis.test.globalconfig
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Logging/DocumentationSignatureParser.cs
src/libraries/Microsoft.Extensions.DependencyModel/src/DependencyContextJsonReader.cs
src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Internal/MatcherContext.cs
src/libraries/Microsoft.NETCore.Platforms/src/GenerateRuntimeGraph.cs
src/libraries/System.ComponentModel.Composition.Registration/src/System/ComponentModel/Composition/Registration/PartBuilder.cs
src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/CatalogExportProvider.cs
src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.PartManager.cs
src/libraries/System.Composition.Convention/src/System/Composition/Convention/PartConventionBuilder.cs
src/libraries/System.Composition.TypedParts/src/System/Composition/TypedParts/Discovery/DiscoveredPart.cs
src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/Marshalling/ElementsMarshalling.cs
src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
src/tasks/AndroidAppBuilder/ApkBuilder.cs
src/tasks/AppleAppBuilder/AppleAppBuilder.cs
src/tasks/Common/DexBuilder.cs
src/tasks/WorkloadBuildTasks/PackageInstaller.cs