Table of Contents

EscapeXml Method

Definition

Namespace
Cuemon.Xml
Assemblies
Cuemon.Xml.dll
Source
src/Cuemon.Xml/Extensions/StringDecoratorExtensions.cs

EscapeXml(IDecorator<string>)

Escapes the given XML of the enclosed string of the specified decorator.

public static string EscapeXml(this IDecorator<string> decorator)

Parameters

decorator IDecorator<string>

The IDecorator<T> to extend.

Returns

string

An escaped equivalent of the enclosed string of the specified decorator.

Exceptions

ArgumentNullException

decorator cannot be null.