Table of Contents

Method Parse

Namespace
DocWright.Dom.Fields
Assembly
DocWright.Dom.dll

Parse(string?)

Parses a field instruction. A null or whitespace-only instruction yields an instruction whose Kind is Unknown and whose Name is empty; parsing never throws on malformed input.

public static FieldInstruction Parse(string? instruction)

Parameters

instruction string

The instruction text, without the surrounding field braces.

Returns

FieldInstruction

The parsed instruction.