Implemented interface member:
29 references to Count
aspire (1)
Configuration\ConfigurationService.cs (1)
323if (currentObject.Count == 0)
Aspire.Cli.Tests (1)
Commands\ResourceCommandTests.cs (1)
2284Assert.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)
1049if (effectiveState.Count > 0)
Orchestrator\ParameterProcessor.cs (4)
255if (parameterSection.Data.Count > 0) 295context.Input.Disabled = parameterSection.Data.Count == 0; 350var hasSavedState = parameterSection.Data.Count > 0 && input.Value is not null; 380var hasSavedState = parameterSection.Data.Count > 0;
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (1)
2520["hasState"] = section.Data.Count > 0,
Provisioning\Provisioners\BicepProvisioner.cs (1)
55if (stateSection.Data.Count == 0)
Aspire.Hosting.Azure.Tests (3)
BicepUtilitiesTests.cs (3)
61Assert.Equal(8, parameters.Count); 325Assert.Equal(3, parameters.Count); 357Assert.Equal(2, scope.Count);
Aspire.Hosting.RemoteHost (1)
Diagnostics\RemoteHostProfilingTelemetry.cs (1)
435activity.SetTag(Tags.CapabilityArgumentCount, args?.Count ?? 0);
Aspire.Hosting.Tests (3)
JsonFlattenerTests.cs (1)
61Assert.Equal(3, result.Count);
Orchestrator\ParameterProcessorTests.cs (2)
1527Assert.True(capturingStateManager.State.Count > 0); 1621Assert.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)
System.Text.Json (9)
System\Text\Json\Nodes\JsonArray.cs (1)
395return $"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>