Table of Contents

Method Render

Namespace
DocWright.Core.Text
Assembly
DocWright.Core.dll

Render(string, bool)

Renders a token back to instruction syntax, quoting and escaping only when the value needs it, so that an unquoted token round-trips unquoted.

public static string Render(string value, bool forceQuotes)

Parameters

value string

The token text.

forceQuotes bool

Whether to quote even when the value would not require it.

Returns

string

The instruction-syntax spelling of the token.

Exceptions

ArgumentNullException

value is null.