IJsonDocument.CloneElement Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| CloneElement(int) | Clones the element at the specified index. |
| CloneElement(int) | Clones the element at the specified index. |
CloneElement(int)
Source: IJsonDocument.cs
Clones the element at the specified index.
public abstract JsonElement CloneElement(int index)
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element. |
Returns
The cloned JSON element.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
CloneElement(int)
Source: IJsonDocument.cs
Clones the element at the specified index.
public abstract TElement CloneElement<TElement>(int index)
where TElement : struct, IJsonElement<TElement>
Type Parameters
| Parameter | Description |
|---|---|
TElement |
The type of the JSON element. |
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element. |
Returns
TElement
The cloned JSON element.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue