Class XElementRewriter
An implementation of IRewriter<T> for XElements.
Inheritance
- Object
- XElementRewriter
Implements
Declaration
public class XElementRewriter : Object, IRewriter<XElement>
Constructors
XElementRewriter()
Create a new instance of XElementRewriter.
Declaration
protected XElementRewriter()
Properties
Instance
Gets the single global instance of XElementRewriter.
Declaration
public static XElementRewriter Instance { get; }
Property Value
| Type | Description |
|---|---|
The single global instance of XElementRewriter. |
Methods
CountChildren(XElement)
Declaration
public int CountChildren(XElement value)
Parameters
| Type | Name | Description |
|---|---|---|
value |
Returns
| Type | Description |
|---|---|
GetChildren(Span<XElement>, XElement)
Declaration
public void GetChildren(Span<XElement> children, XElement value)
Parameters
| Type | Name | Description |
|---|---|---|
children |
||
value |
SetChildren(ReadOnlySpan<XElement>, XElement)
Declaration
public XElement SetChildren(ReadOnlySpan<XElement> newChildren, XElement oldValue)
Parameters
| Type | Name | Description |
|---|---|---|
newChildren |
||
oldValue |
Returns
| Type | Description |
|---|---|