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> children, XElement value)
Parameters
Type Name Description

Span<XElement>

children

XElement

value

SetChildren(ReadOnlySpan<XElement>, XElement)

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

ReadOnlySpan<XElement>

newChildren

XElement

oldValue

Returns
Type Description

XElement

Implements

IRewriter<T>