25 references to Clone
aspire (2)
Commands\McpCallCommand.cs (1)
87dict[prop.Name] = prop.Value.Clone();
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
54return document.RootElement.Clone();
Aspire.Cli.Tests (4)
Commands\Sdk\SdkExportCommandTests.cs (1)
423return Task.FromResult(document.RootElement.Clone());
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());
Aspire.Dashboard.Tests (5)
DashboardOptionsTests.cs (5)
369""").RootElement.Clone(); 423""").RootElement.Clone(); 452""").RootElement.Clone(); 490""").RootElement.Clone(); 527""").RootElement.Clone();
Aspire.Hosting (1)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1957_ => element.Clone()
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptApiReferenceExporter.cs (1)
61return document.RootElement.Clone();
Aspire.Hosting.Tests (1)
Backchannel\BackchannelContractTests.cs (1)
365return document.RootElement.Clone();
Aspire.TypeSystem (1)
IApiReferenceExporter.cs (1)
47/// <see cref="JsonElement.Clone"/>.
Infrastructure.Tests (6)
tools\GenerateCITimeline\GitHubApi.cs (6)
35return emptyDoc.RootElement.Clone(); 82return doc.RootElement.Clone(); 124return doc.RootElement.Clone(); 163runInfo = ri.Clone(); 168runInfo = emptyDoc.RootElement.Clone(); 176jobs.Add(j.Clone());
Microsoft.TestPlatform.CommunicationUtilities (1)
Serialization\ObjectConverter.cs (1)
36_ => JsonDocument.ParseValue(ref reader).RootElement.Clone(),
System.Text.Json (3)
System\Text\Json\Nodes\JsonArray.cs (1)
81? new JsonArray(jsonElement.Value.Clone(), Options)
System\Text\Json\Nodes\JsonObject.cs (1)
90? new JsonObject(jsonElement.Value.Clone(), Options)
System\Text\Json\Nodes\JsonValueOfElement.cs (1)
20internal override JsonNode DeepCloneCore() => new JsonValueOfElement(Value.Clone(), Options);