Implemented interface member:
47 references to Count
AnalyzeCiFailure (2)
CollectionProjection.cs (2)
42LastSuccessfulRun = last.Count == 0 ? null : new CollectedLastSuccess 47TriggeringMerge = merge.Count == 0 ? null : new CollectedTriggeringMerge
AnalyzeCiFailure.Tests (1)
AnalyzeCiFailureFixtures.cs (1)
151var capturedPr = prMetadata is null || prMetadata.Count == 0 ? null : new CollectedPrMetadata
aspire (7)
Commands\TemplateManagementCommand.cs (1)
123else if (sources.Count == 0)
Configuration\ConfigSourceService.cs (1)
397var insertionIndex = configuration.Count;
Configuration\ConfigurationService.cs (2)
332if (child is JsonObject { Count: 0 } && current is JsonObject parent) 357if (value is JsonObject { Count: > 0 } obj)
Projects\NativeProviderDescriptor.cs (1)
22descriptor["sdkFiles"] is not JsonObject { Count: <= 128 } files ||
Templating\TemplateSourceStore.cs (1)
69if (sources.Count == 0)
Utils\ConfigurationHelper.cs (1)
722keys = new Dictionary<string, string>(obj.Count, StringComparer.OrdinalIgnoreCase);
Aspire.Cli.Tests (5)
Commands\NewCommandLocalTemplateTests.SourceManagement.cs (2)
235Assert.Equal(options.Length / 2, source.Count); 241Assert.Equal(2, settings["templateSources"]!.AsObject().Count);
Commands\ResourceCommandTests.cs (1)
2324Assert.Equal(expected.Length, actualObject.Count);
Configuration\ConfigurationHelperTests.cs (2)
668Assert.Equal(propertyCount, nested.Count); 815Assert.Equal(propertyCount * (hasExistingSection ? 2 : 1), properties.Count);
Aspire.Dashboard (2)
Model\GenAI\GenAIItemPartViewModel.cs (2)
77JsonObject obj when obj.Count == 0 => string.Empty, 116JsonObject obj when obj.Count == 0 => string.Empty,
Aspire.Hosting (5)
DistributedApplicationBuilder.cs (1)
1229if (effectiveState.Count > 0)
Orchestrator\ParameterProcessor.cs (4)
362if (parameterSection.Data.Count > 0) 402context.Input.Disabled = parameterSection.Data.Count == 0; 441var hasSavedState = parameterSection.Data.Count > 0 && input.Value is not null; 491var hasSavedState = parameterSection.Data.Count > 0;
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (1)
2638["hasState"] = section.Data.Count > 0,
Provisioning\Provisioners\BicepProvisioner.cs (1)
52if (stateSection.Data.Count == 0)
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
351if (deploymentStateSection.Data.Count == 0)
Aspire.Hosting.Azure.Tests (4)
BicepUtilitiesTests.cs (4)
258Assert.Equal(8, parameters.Count); 315Assert.Equal(3, parameters.Count); 554Assert.Equal(3, parameters.Count); 586Assert.Equal(2, scope.Count);
Aspire.Hosting.Native.Server (2)
Rpc\NativeLanguageCatalog.cs (1)
108if (files.Count == 0)
Rpc\RpcArguments.cs (1)
15if (arguments.Count != names.Length || names.Any(name => !arguments.ContainsKey(name)))
Aspire.Hosting.RemoteHost (1)
Diagnostics\RemoteHostProfilingTelemetry.cs (1)
452activity.SetTag(Tags.CapabilityArgumentCount, args?.Count ?? 0);
Aspire.Hosting.Tests (3)
JsonFlattenerTests.cs (1)
61Assert.Equal(3, result.Count);
Orchestrator\ParameterProcessorTests.cs (2)
2143Assert.True(capturingStateManager.State.Count > 0); 2697Assert.True(capturingStateManager.State.Count > 0);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
1850Assert.Equal(((JsonArray)schemaObj["required"]!).Count, ((JsonObject)props!).Count);
Microsoft.TemplateEngine.Cli (1)
TemplateSearch\CliHostSearchCacheData.cs (1)
23if (cacheObject.Count == 0)
NativeIntegrations.DockerCompose (1)
DockerComposeGenerator.cs (1)
300if (compose["services"]!.AsObject().Count == 0)
System.Text.Json (9)
System\Text\Json\Nodes\JsonArray.cs (1)
397return $"JsonObject[{jsonObject.Count}]";
System\Text\Json\Nodes\JsonObject.cs (3)
96_dictionary = CreateDictionary(Options, Count) 334DebugViewProperty[] properties = new DebugViewProperty[_node.Count]; 374return $"{PropertyName} = JsonObject[{jsonObject.Count}]";
System\Text\Json\Nodes\JsonObject.IList.cs (5)
14/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception> 21/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception> 38/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception> 66/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than <see cref="Count"/>.</exception> 77/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is less than 0 or greater than or equal to <see cref="Count"/>.</exception>