120 references to Name
aspire (12)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
925arguments[prop.Name] = prop.Value;
Commands\McpCallCommand.cs (1)
87dict[prop.Name] = prop.Value.Clone();
Configuration\AspireConfigFile.cs (4)
279envProp.Name, envProp.Value.ValueKind, envValue); 282profile.EnvironmentVariables[envProp.Name] = envValue; 288envProp.Name, envProp.Value.ValueKind); 293profiles[prop.Name] = profile;
Mcp\Tools\ExecuteResourceCommandTool.cs (2)
178arguments[property.Name] = property.Value.ValueKind switch 185_ => throw new McpProtocolException($"Argument 'arguments.{property.Name}' must be a string, number, boolean, or null.", McpErrorCode.InvalidParams)
Projects\DotNetAppHostProject.cs (2)
2146if (!string.Equals(candidate.Name, requestedProfileName, StringComparison.OrdinalIgnoreCase)) 2205? selectedProfile.Name
Projects\GuestAppHostProject.cs (1)
1003result[prop.Name] = prop.Value.GetString()!;
Projects\PrebuiltAppHostServer.cs (1)
1614TryParsePackageFingerprintKey(library.Name) is not { } packageKey)
Aspire.Acquisition.Tests (2)
Scripts\ReleaseScriptPowerShellTests.cs (1)
281Assert.Equal("source", property.Name);
Scripts\ReleaseScriptShellTests.cs (1)
217Assert.Equal("source", property.Name);
Aspire.Cli.EndToEnd.Tests (3)
EmulatedLocalReleaseBuildTests.cs (3)
385if (package.Name.StartsWith("Aspire.", StringComparison.OrdinalIgnoreCase) && 386package.Name.Contains("Redis", StringComparison.OrdinalIgnoreCase) && 390return (package.Name, version);
Aspire.Cli.Tests (5)
Caching\AppHostInfoDiskCacheTests.cs (1)
119.Select(property => property.Name)
Mcp\ExcludeFromMcpTests.cs (1)
269.ToDictionary(p => p.Name, p => p.Value.Clone());
Mcp\ExecuteResourceCommandToolTests.cs (2)
36.ToDictionary(p => p.Name, p => p.Value.Clone()); 295.EnumerateObject().ToDictionary(p => p.Name, p => p.Value.Clone());
Templating\JavaAppHostTemplateTests.cs (1)
117.Select(package => package.Name)
Aspire.Hosting (2)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
238arguments[prop.Name] = ConvertJsonElementToObject(prop.Value); 1956JsonValueKind.Object => element.EnumerateObject().ToDictionary(p => p.Name, p => ConvertJsonElementToObject(p.Value)),
Aspire.Hosting.Browsers (7)
ChromiumBrowserResolver.cs (7)
136if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name)) || 144if (match is not null && !string.Equals(match, profileEntry.Name, StringComparison.Ordinal)) 150match = profileEntry.Name; 292if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name))) 297profiles[profileEntry.Name] = new ChromiumBrowserProfile( 298profileEntry.Name, 315return string.Equals(profileEntry.Name, profile, StringComparison.OrdinalIgnoreCase) ||
Aspire.Hosting.Browsers.Tests (7)
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (7)
136if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name)) || 144if (match is not null && !string.Equals(match, profileEntry.Name, StringComparison.Ordinal)) 150match = profileEntry.Name; 292if (!Directory.Exists(Path.Combine(userDataDirectory, profileEntry.Name))) 297profiles[profileEntry.Name] = new ChromiumBrowserProfile( 298profileEntry.Name, 315return string.Equals(profileEntry.Name, profile, StringComparison.OrdinalIgnoreCase) ||
Aspire.Hosting.Kubernetes (1)
KubernetesManifestResource.cs (1)
230JsonValueKind.Object => element.EnumerateObject().ToDictionary(prop => prop.Name, prop => NormalizeJsonElement(prop.Value), StringComparer.Ordinal),
Aspire.Hosting.Radius (4)
Publishing\SealedSecretApplyStep.cs (1)
608keys.Add(member.Name);
Secrets\SealedSecretManifest.cs (3)
392switch (property.Name) 469if (string.Equals(property.Name, field, StringComparison.Ordinal)) 495if (string.Equals(property.Name, name, StringComparison.Ordinal))
Aspire.Hosting.RemoteHost.Tests (1)
ManifestCommandTests.cs (1)
288? packageFolders.Current.Name
Aspire.Hosting.Sdk.Tests (1)
AppHostSdkTargetsTests.cs (1)
1216return properties.EnumerateObject().ToDictionary(property => property.Name, property => property.Value.GetString() ?? string.Empty);
dotnet-aot (1)
parent\dotnet\ToolManifest\ToolManifestEditor.cs (1)
169PackageId = toolJson.Name
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
469packageVersionsDictionary[packageVersion.Name] = packageVersion.Value.GetString();
dotnet-sourcelink (1)
ILCompiler.Compiler (1)
parent\parent\Common\Microsoft\SourceLink\Tools\SourceLinkMap.cs (1)
87!TryParseEntry(documentsEntry.Name, documentsEntry.Value.GetString()!, out var entry))
ILCompiler.ReadyToRun (1)
Compiler\CallChainProfile.cs (1)
256string keyParts = methodAndCallees.Name;
Infrastructure.Tests (4)
tools\GenerateCITimeline\GitHubApi.cs (2)
92if (!merged.TryGetValue(prop.Name, out var list)) 95merged[prop.Name] = list;
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (2)
1262Assert.Contains(prop.Name, allowedTopLevel); 2084Assert.Contains(prop.Name, allowedFields);
Microsoft.AspNetCore.Authentication.OAuth (2)
MapAllClaimsAction.cs (2)
31var duplicate = identity.FindFirst(c => string.Equals(c.Type, pair.Name, StringComparison.OrdinalIgnoreCase) 36identity.AddClaim(new Claim(pair.Name, claimValue, ClaimValueTypes.String, issuer));
Microsoft.AspNetCore.Components.Web (14)
JSComponents\JSComponentInterop.cs (1)
96var parameterName = jsonProperty.Name;
WebEventData\ChangeEventArgsReader.cs (1)
43throw new JsonException($"Unknown property {property.Name}");
WebEventData\ClipboardEventArgsReader.cs (1)
25throw new JsonException($"Unknown property {property.Name}");
WebEventData\DragEventArgsReader.cs (2)
73throw new JsonException($"Unknown property {property.Name}"); 95throw new JsonException($"Unknown property {property.Name}");
WebEventData\ErrorEventArgsReader.cs (1)
45throw new JsonException($"Unknown property {property.Name}");
WebEventData\FocusEventArgsReader.cs (1)
25throw new JsonException($"Unknown property {property.Name}");
WebEventData\KeyboardEventArgsReader.cs (1)
70throw new JsonException($"Unknown property {property.Name}");
WebEventData\MouseEventArgsReader.cs (1)
117throw new JsonException($"Unknown property {property.Name}");
WebEventData\ProgressEventArgReader.cs (1)
40throw new JsonException($"Unknown property {property.Name}");
WebEventData\TouchEventArgsReader.cs (2)
72throw new JsonException($"Unknown property {property.Name}"); 126throw new JsonException($"Unknown property {property.Name}");
WebEventData\WebEventDescriptorReader.cs (2)
38throw new JsonException($"Unknown property {property.Name}"); 72throw new JsonException($"Unknown property {property.Name}");
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Infrastructure\DefaultTempDataSerializer.cs (2)
74deserialized[item.Name] = deserializedValue; 122dictionary[item.Name] = item.Value.GetString();
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SourceLinkMap.cs (1)
94!TryParseEntry(documentsEntry.Name, documentsEntry.Value.GetString()!, out var entry))
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
265runtime = token.Name;
Microsoft.DotNet.ProjectTools (4)
LaunchSettings\LaunchSettings.cs (4)
103selectedProfileName = firstProfileProperty.Value.ValueKind == JsonValueKind.Object ? firstProfileProperty.Name : null; 110.Where(p => string.Equals(p.Name, profileName, StringComparison.OrdinalIgnoreCase))]; 115string.Join(",\n", caseInsensitiveProfileMatches.Select(p => $"\t{p.Name}")))); 123profileObject = profilesObject.GetProperty(caseInsensitiveProfileMatches.First().Name);
Microsoft.Extensions.AI.Evaluation.Safety (4)
ContentSafetyService.cs (4)
63string metricName = metricProperty.Name; 110if (property.Name != "label" && property.Name != "reasoning") 112metric.AddOrUpdateMetadata(property.Name, property.Value.ToString());
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
50EnterContext(property.Name);
Microsoft.ML.Tokenizers.Tests (1)
BpeTests.cs (1)
1008yield return new KeyValuePair<string, int>(token.Name, token.Value.GetInt32());
Microsoft.NET.Build.Containers (4)
LocalDaemons\ContainerRuntimes.cs (2)
184property.Name.Equals(registryDomain, StringComparison.OrdinalIgnoreCase)) 199property.Name.Equals(registryDomain, StringComparison.OrdinalIgnoreCase))
LocalDaemons\DockerCli.cs (2)
253&& property.Name.Equals(registryDomain, StringComparison.OrdinalIgnoreCase)) 269&& property.Name.Equals(registryDomain, StringComparison.OrdinalIgnoreCase))
Microsoft.NET.HostModel (1)
ComHost\RegFreeComManifest.cs (1)
65string guidMaybe = property.Name;
Microsoft.SourceLink.Tools.Package (1)
SourceLinkMap.cs (1)
114!TryParseEntry(documentsEntry.Name, documentsEntry.Value.GetString()!, out var entry))
Microsoft.TemplateEngine.Edge (5)
parent\Shared\JExtensions.cs (5)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 269if (propertyIndexes.TryGetValue(prop.Name, out int existingIndex)) 275propertyIndexes[prop.Name] = result.Count; 557if (string.Equals(prop.Name, key, StringComparison.Ordinal)) 561else if (string.Equals(prop.Name, key, StringComparison.OrdinalIgnoreCase))
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (5)
parent\Shared\JExtensions.cs (5)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 269if (propertyIndexes.TryGetValue(prop.Name, out int existingIndex)) 275propertyIndexes[prop.Name] = result.Count; 557if (string.Equals(prop.Name, key, StringComparison.Ordinal)) 561else if (string.Equals(prop.Name, key, StringComparison.OrdinalIgnoreCase))
Microsoft.TemplateEngine.Utils (5)
parent\Shared\JExtensions.cs (5)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 269if (propertyIndexes.TryGetValue(prop.Name, out int existingIndex)) 275propertyIndexes[prop.Name] = result.Count; 557if (string.Equals(prop.Name, key, StringComparison.Ordinal)) 561else if (string.Equals(prop.Name, key, StringComparison.OrdinalIgnoreCase))
Microsoft.TemplateSearch.Common (5)
parent\Shared\JExtensions.cs (5)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 269if (propertyIndexes.TryGetValue(prop.Name, out int existingIndex)) 275propertyIndexes[prop.Name] = result.Count; 557if (string.Equals(prop.Name, key, StringComparison.Ordinal)) 561else if (string.Equals(prop.Name, key, StringComparison.OrdinalIgnoreCase))
Microsoft.TestPlatform.CommunicationUtilities (1)
Serialization\TestRunStatisticsConverter.cs (1)
37if (Enum.TryParse<TestOutcome>(kvp.Name, out var outcome))
RepoTasks (2)
ResolveDotnetToolPackagePaths.cs (2)
55if (!toolsByPackageId.TryAdd(tool.Name, tool.Value)) 57Log.LogError($"The dotnet tool manifest '{ToolManifestPath}' contains duplicate package ID '{tool.Name}' under case-insensitive comparison.");
System.Text.Json (7)
System\Text\Json\Document\JsonElement.cs (2)
1373ref ValueQueue<JsonElement> values = ref CollectionsMarshal.GetValueRefOrAddDefault(properties2, prop2.Name, out bool _); 1388ref ValueQueue<JsonElement> values = ref CollectionsMarshal.GetValueRefOrAddDefault(properties2, prop.Name, out bool exists);
System\Text\Json\Document\JsonProperty.cs (4)
44/// <see cref="Name" />, but can avoid creating the string instance. 64/// <see cref="Name" />, but can avoid creating the string instance. 84/// <see cref="Name" />, but can avoid creating the string instance. 107/// This <see cref="Name"/>'s length is too large to be a JSON object property.
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
257newDictionary.Add(jElementProperty.Name, node);