Implemented interface member:
29 references to Count
aspire (1)
Configuration\ConfigurationService.cs (1)
323
if (currentObject.
Count
== 0)
Aspire.Cli.Tests (1)
Commands\ResourceCommandTests.cs (1)
2284
Assert.Equal(expected.Length, actualObject.
Count
);
Aspire.Dashboard (2)
Model\GenAI\GenAIItemPartViewModel.cs (2)
77
JsonObject obj when obj.
Count
== 0 => string.Empty,
116
JsonObject obj when obj.
Count
== 0 => string.Empty,
Aspire.Hosting (5)
DistributedApplicationBuilder.cs (1)
1049
if (effectiveState.
Count
> 0)
Orchestrator\ParameterProcessor.cs (4)
255
if (parameterSection.Data.
Count
> 0)
295
context.Input.Disabled = parameterSection.Data.
Count
== 0;
350
var hasSavedState = parameterSection.Data.
Count
> 0 && input.Value is not null;
380
var hasSavedState = parameterSection.Data.
Count
> 0;
Aspire.Hosting.Azure (2)
AzureProvisioningController.cs (1)
2520
["hasState"] = section.Data.
Count
> 0,
Provisioning\Provisioners\BicepProvisioner.cs (1)
55
if (stateSection.Data.
Count
== 0)
Aspire.Hosting.Azure.Tests (3)
BicepUtilitiesTests.cs (3)
61
Assert.Equal(8, parameters.
Count
);
325
Assert.Equal(3, parameters.
Count
);
357
Assert.Equal(2, scope.
Count
);
Aspire.Hosting.RemoteHost (1)
Diagnostics\RemoteHostProfilingTelemetry.cs (1)
435
activity.SetTag(Tags.CapabilityArgumentCount, args?.
Count
?? 0);
Aspire.Hosting.Tests (3)
JsonFlattenerTests.cs (1)
61
Assert.Equal(3, result.
Count
);
Orchestrator\ParameterProcessorTests.cs (2)
1527
Assert.True(capturingStateManager.State.
Count
> 0);
1621
Assert.True(capturingStateManager.State.
Count
> 0);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
1850
Assert.Equal(((JsonArray)schemaObj["required"]!).Count, ((JsonObject)props!).
Count
);
Microsoft.TemplateEngine.Cli (1)
TemplateSearch\CliHostSearchCacheData.cs (1)
23
if (cacheObject.
Count
== 0)
System.Text.Json (9)
System\Text\Json\Nodes\JsonArray.cs (1)
395
return $"JsonObject[{jsonObject.
Count
}]";
System\Text\Json\Nodes\JsonObject.cs (3)
96
_dictionary = CreateDictionary(Options,
Count
)
334
DebugViewProperty[] properties = new DebugViewProperty[_node.
Count
];
374
return $"{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>