8 references to TryGetValue
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (8)
ConfigModel\BaseValueSymbol.cs (2)
23
if (!jObject.
TryGetValue
(nameof(Forms), out JsonNode? formsToken) || formsToken is not JsonObject formsObject)
83
if (!token.
TryGetValue
(nameof(IsRequired), out JsonNode? isRequiredToken))
ConfigModel\CustomFileGlobModel.cs (1)
44
if (globData.
TryGetValue
(nameof(Operations), out JsonNode? operationData))
ConfigModel\ParameterSymbol.cs (2)
198
if (jObject != null && jObject.
TryGetValue
("IsEnabled", out JsonNode? isEnabledToken))
248
if (!token.
TryGetValue
(nameof(IsRequired), out JsonNode? isRequiredToken))
ConfigModel\TemplateConfigModel.cs (1)
194
obj.
TryGetValue
(nameof(TemplateConstraintInfo.Args), out JsonNode? args);
parent\Shared\JExtensions.cs (2)
111
if (!token.
TryGetValue
(key, out JsonNode? checkToken))
351
if (!jObject.
TryGetValue
(key, out JsonNode? checkToken))