Implemented interface member:
35 references to Count
aspire (2)
Configuration\ConfigurationService.cs (1)
323if (currentObject.Count == 0)
Projects\NativeProviderDescriptor.cs (1)
22descriptor["sdkFiles"] is not JsonObject { Count: <= 128 } files ||
Aspire.Cli.Tests (1)
Commands\ResourceCommandTests.cs (1)
2324Assert.Equal(expected.Length, actualObject.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)
1215if (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)
366if (deploymentStateSection.Data.Count == 0)
Aspire.Hosting.Azure.Tests (4)
BicepUtilitiesTests.cs (4)
126Assert.Equal(8, parameters.Count); 183Assert.Equal(3, parameters.Count); 422Assert.Equal(3, parameters.Count); 454Assert.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)
1829Assert.True(capturingStateManager.State.Count > 0); 2383Assert.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>