25 references to Clone
aspire (2)
Commands\McpCallCommand.cs (1)
87
dict[prop.Name] = prop.Value.
Clone
();
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
54
return document.RootElement.
Clone
();
Aspire.Cli.Tests (4)
Commands\Sdk\SdkExportCommandTests.cs (1)
423
return 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)
61
return document.RootElement.
Clone
();
Aspire.Hosting.Tests (1)
Backchannel\BackchannelContractTests.cs (1)
365
return document.RootElement.
Clone
();
Aspire.TypeSystem (1)
IApiReferenceExporter.cs (1)
47
/// <see cref="JsonElement.
Clone
"/>.
Infrastructure.Tests (6)
tools\GenerateCITimeline\GitHubApi.cs (6)
35
return emptyDoc.RootElement.
Clone
();
82
return doc.RootElement.
Clone
();
124
return doc.RootElement.
Clone
();
163
runInfo = ri.
Clone
();
168
runInfo = emptyDoc.RootElement.
Clone
();
176
jobs.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)
20
internal override JsonNode DeepCloneCore() => new JsonValueOfElement(Value.
Clone
(), Options);