Sawmill

Class XElementRewriter

An implementation of IRewriter<T> for XElements.

Inheritance
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

XElementRewriter

The single global instance of XElementRewriter.

Methods

CountChildren(XElement)

CountChildren(T)
Declaration
public int CountChildren(XElement value)
Parameters
Type Name Description

XElement

value

Returns
Type Description

Int32

GetChildren(Span<XElement>, XElement)

GetChildren(Span<T>, T)
Declaration
public void GetChildren(Span<XElement> childrenReceiver, XElement value)
Parameters
Type Name Description

Span<XElement>

childrenReceiver

XElement

value

SetChildren(ReadOnlySpan<XElement>, XElement)

SetChildren(ReadOnlySpan<T>, T)
Declaration
public XElement SetChildren(ReadOnlySpan<XElement> newChildren, XElement value)
Parameters
Type Name Description

ReadOnlySpan<XElement>

newChildren

XElement

value

Returns
Type Description

XElement

Implements

IRewriter<T>