4 overrides of TryGetValue
System.Text.Json (4)
System\Text\Json\Nodes\JsonValueOfJsonPrimitive.cs (3)
66
public override bool
TryGetValue
<T>([NotNullWhen(true)] out T? value)
150
public override bool
TryGetValue
<T>([NotNullWhen(true)] out T? value)
197
public override bool
TryGetValue
<T>([NotNullWhen(true)] out T? value)
System\Text\Json\Nodes\JsonValueOfT.cs (1)
38
public override bool
TryGetValue
<T>([NotNullWhen(true)] out T value)
66 references to TryGetValue
aspire (13)
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
175
if (bundleNode is JsonValue bundleValue && bundleValue.
TryGetValue
<string>(out var bundleString))
Agents\Hooks\TelemetryHookConfigurator.cs (2)
352
&& commandValue.
TryGetValue
<string>(out var command)
363
&& argValue.
TryGetValue
<string>(out var argString)
Backchannel\ResourceSnapshotMapper.cs (1)
216
if (node is JsonValue jsonValue && jsonValue.
TryGetValue
<string>(out var stringValue))
Mcp\Tools\McpToolHelpers.cs (2)
129
if (jsonValue.
TryGetValue
<bool>(out var boolValue))
134
if (jsonValue.
TryGetValue
<string>(out var stringValue) && bool.TryParse(stringValue, out var parsedBool))
Projects\TypeScriptAppHostToolchainResolver.cs (1)
312
!packageManagerValue.
TryGetValue
<string>(out var packageManager) ||
Scaffolding\PackageJsonMerger.cs (4)
155
if (value is not JsonValue scriptValue || !scriptValue.
TryGetValue
<string>(out var command))
229
if (versionNode is not JsonValue desiredValue || !desiredValue.
TryGetValue
<string>(out var desiredVersion))
250
&& existingValue.
TryGetValue
<string>(out var existingVersion)
273
&& existingValue.
TryGetValue
<string>(out var existingVersion)
Scaffolding\ScaffoldingService.cs (1)
400
existingScriptValue.
TryGetValue
<string>(out var existingScript) &&
Telemetry\InternalMicrosoftDetector.cs (1)
1310
jsonValue.
TryGetValue
<string>(out var text)
Aspire.Hosting (5)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (3)
1434
JsonValue jsonValue when jsonValue.
TryGetValue
<string>(out var stringValue) => stringValue,
1435
JsonValue jsonValue when jsonValue.
TryGetValue
<bool>(out var boolValue) => boolValue.ToString(CultureInfo.InvariantCulture),
1436
JsonValue jsonValue when jsonValue.
TryGetValue
<IFormattable>(out var formattableValue) => formattableValue.ToString(null, CultureInfo.InvariantCulture),
Dcp\JsonPatch.cs (2)
34
!operationValue.
TryGetValue
<string>(out var operationName) ||
35
!pathValue.
TryGetValue
<string>(out var path))
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
990
JsonValue jsonValue when jsonValue.
TryGetValue
<bool>(out var boolValue) => boolValue ? "True" : "False",
Aspire.Hosting.CodeGeneration.TypeScript (1)
TypeScriptLanguageSupport.cs (1)
220
return node is JsonValue value && value.
TryGetValue
<string>(out var stringValue) ? stringValue : null;
Aspire.Hosting.RemoteHost (35)
Ats\AtsMarshaller.cs (27)
586
if (node is JsonValue callbackValue && callbackValue.
TryGetValue
<string>(out var callbackId))
602
if (node is JsonValue tokenValue && tokenValue.
TryGetValue
<string>(out var tokenId) && !string.IsNullOrEmpty(tokenId))
741
JsonValue v when v.
TryGetValue
<string>(out _) => "string",
742
JsonValue v when v.
TryGetValue
<bool>(out _) => "bool",
743
JsonValue v when v.
TryGetValue
<long>(out _) => "number",
744
JsonValue v when v.
TryGetValue
<double>(out _) => "number",
772
if (value.
TryGetValue
<int>(out var intValue))
778
if (value.
TryGetValue
<decimal>(out var decimalValue))
783
if (value.
TryGetValue
<long>(out var longValue))
788
if (value.
TryGetValue
<ulong>(out var ulongValue))
793
if (value.
TryGetValue
<double>(out var doubleValue) && double.IsFinite(doubleValue))
810
if (value.
TryGetValue
<int>(out var intValue))
815
if (value.
TryGetValue
<long>(out var longValue))
820
if (value.
TryGetValue
<ulong>(out var ulongValue))
825
if (value.
TryGetValue
<decimal>(out var decimalValue))
830
if (value.
TryGetValue
<double>(out var doubleValue) && double.IsFinite(doubleValue))
863
if (value.
TryGetValue
<string>(out var s))
867
if (value.
TryGetValue
<bool>(out var b))
871
if (value.
TryGetValue
<long>(out var l))
875
if (value.
TryGetValue
<double>(out var d))
885
if (value.
TryGetValue
<string>(out var enumName))
890
if (value.
TryGetValue
<int>(out var enumValue))
953
return value.
TryGetValue
<float>(out var floatValue) ? floatValue : (float)value.GetValue<double>();
964
if (value.
TryGetValue
<double>(out var ms))
968
if (value.
TryGetValue
<string>(out var str))
978
if (value.
TryGetValue
<string>(out var str))
987
if (value.
TryGetValue
<string>(out var str))
Ats\CapabilityDispatcher.cs (5)
943
value.
TryGetValue
<string>(out _);
951
JsonValue v when v.
TryGetValue
<string>(out _) => "string",
952
JsonValue v when v.
TryGetValue
<bool>(out _) => "bool",
953
JsonValue v when v.
TryGetValue
<long>(out _) => "number",
954
JsonValue v when v.
TryGetValue
<double>(out _) => "number",
Ats\ReferenceExpressionRef.cs (3)
90
matchValueJsonValue.
TryGetValue
<string>(out var mv))
107
!formatValue.
TryGetValue
<string>(out var format))
230
else if (providerNode is JsonValue jsonValue && jsonValue.
TryGetValue
<string>(out var stringValue))
Microsoft.AspNetCore.OpenApi (3)
Extensions\JsonNodeSchemaExtensions.cs (2)
617
return jsonNode is JsonValue jsonValue && jsonValue.
TryGetValue
<string>(out var identifier)
626
if (node is JsonValue jsonValue && jsonValue.
TryGetValue
<string>(out var identifier))
Services\Schemas\OpenApiSchemaService.cs (1)
593
refValue.
TryGetValue
<string>(out var refString) &&
Microsoft.TemplateEngine.Cli (1)
JExtensions.cs (1)
253
if (token is JsonValue jv && jv.
TryGetValue
(out int intVal))
Microsoft.TemplateEngine.Edge (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
130
if (token is JsonValue jv && jv.
TryGetValue
(out int intVal))
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
130
if (token is JsonValue jv && jv.
TryGetValue
(out int intVal))
Microsoft.TemplateEngine.Utils (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
130
if (token is JsonValue jv && jv.
TryGetValue
(out int intVal))
Microsoft.TemplateSearch.Common (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
130
if (token is JsonValue jv && jv.
TryGetValue
(out int intVal))
System.Text.Json (3)
System\Text\Json\Nodes\JsonNode.cs (1)
191
/// <seealso cref="System.Text.Json.Nodes.JsonValue.
TryGetValue
"></seealso>
System\Text\Json\Nodes\JsonValueOfTPrimitive.cs (1)
32
if (otherNode is JsonValue otherValue && otherValue.
TryGetValue
(out TValue? v))
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
512
jsonValue.
TryGetValue
(out string? value) &&