Show / Hide Table of Contents

Class NodeReplacer

Implementation of IReplacesNode which replaces a node (upon its parent) using a collection of replacement nodes.

Inheritance
System.Object
NodeReplacer
Implements
IReplacesNode
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Dom
Assembly: ZptSharp.dll
Syntax
public class NodeReplacer : IReplacesNode

Constructors

| Improve this Doc View Source

NodeReplacer(ILogger<NodeReplacer>)

Initializes a new instance of the NodeReplacer class.

Declaration
public NodeReplacer(ILogger<NodeReplacer> logger)
Parameters
Type Name Description
Microsoft.Extensions.Logging.ILogger<NodeReplacer> logger

Logger.

Methods

| Improve this Doc View Source

Replace(INode, IList<INode>)

Replace the specified node with a collection of replacements.

Declaration
public void Replace(INode toReplace, IList<INode> replacements)
Parameters
Type Name Description
INode toReplace

The node to replace.

System.Collections.Generic.IList<INode> replacements

The replacements.

Implements

IReplacesNode

Extension Methods

NodeReplacerExtensions.Replace(IReplacesNode, INode, INode)
NodeReplacerExtensions.Replace(IReplacesNode, INode, IReadOnlyList<INode>)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX