StringValueSyntax Class

A string TOML syntax value node.

public sealed class StringValueSyntax : BareKeyOrStringValueSyntax
Inheritance
BareKeyOrStringValueSyntax StringValueSyntax

Constructors

NameDescription
StringValueSyntax()Creates a new instance of StringValueSyntax
StringValueSyntax(string)Creates a new instance of StringValueSyntax

StringValueSyntax overloads

StringValueSyntax()

StringValueSyntax.cs

Creates a new instance of StringValueSyntax

public StringValueSyntax()

StringValueSyntax(string)

StringValueSyntax.cs

Creates a new instance of StringValueSyntax

public StringValueSyntax(string text)
Parameters
text string
String value used for this node
Exceptions
ArgumentException
text contains an unpaired surrogate, which TOML cannot represent.

Properties

NameDescription
ChildrenCountGets the number of children.
TokenThe token of the string.
ValueThe associated parsed string value

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

The token of the string.

public SyntaxToken? Token { get; set; }

Property value

SyntaxToken?

The associated parsed string value

public string? Value { get; set; }

Property value

string?

Methods

NameDescription
Accept(SyntaxVisitor)Allow to visit this instance with the specified visitor.

Accept(SyntaxVisitor)

StringValueSyntax.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor