TomlPropertySyntax Class

A key/value pair such as port = 8080, in the document or in an inline table.

public sealed class TomlPropertySyntax : TomlEntrySyntax
Inheritance
TomlEntrySyntax TomlPropertySyntax

Properties

NameDescription
EqualsToken
Key
Value
public SyntaxToken EqualsToken { get; }

Property value

SyntaxToken

No documentation is available.

public TomlKeySyntax Key { get; }

Property value

TomlKeySyntax

No documentation is available.

public TomlValueSyntax Value { get; }

Property value

TomlValueSyntax

No documentation is available.

Methods

NameDescription
Accept(TomlSyntaxVisitor)
Accept<TResult>(TomlSyntaxVisitor<TResult>)
Update(TomlKeySyntax, SyntaxToken, TomlValueSyntax)Returns this key/value pair with the given parts, or itself when nothing changed.
WithEqualsToken(SyntaxToken)
WithKey(TomlKeySyntax)
WithValue(TomlValueSyntax)

Accept overloads

Accept(TomlSyntaxVisitor)

TomlPropertySyntax.cs
public override void Accept(TomlSyntaxVisitor visitor)
Parameters
visitor TomlSyntaxVisitor

No documentation is available.

Accept<TResult>(TomlSyntaxVisitor<TResult>)

TomlPropertySyntax.cs
public override TResult? Accept<TResult>(TomlSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor TomlSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

Update(TomlKeySyntax, SyntaxToken, TomlValueSyntax)

TomlPropertySyntax.cs

Returns this key/value pair with the given parts, or itself when nothing changed.

public TomlPropertySyntax Update(TomlKeySyntax key, SyntaxToken equalsToken, TomlValueSyntax value)

Parameters

key TomlKeySyntax
equalsToken SyntaxToken
value TomlValueSyntax

Returns

TomlPropertySyntax

Exceptions

ArgumentNullException
key or value is null.

WithEqualsToken(SyntaxToken)

TomlPropertySyntax.cs
public TomlPropertySyntax WithEqualsToken(SyntaxToken equalsToken)

Parameters

equalsToken SyntaxToken

Returns

TomlPropertySyntax

No documentation is available.

WithKey(TomlKeySyntax)

TomlPropertySyntax.cs
public TomlPropertySyntax WithKey(TomlKeySyntax key)

Parameters

key TomlKeySyntax

Returns

TomlPropertySyntax

No documentation is available.

WithValue(TomlValueSyntax)

TomlPropertySyntax.cs
public TomlPropertySyntax WithValue(TomlValueSyntax value)

Parameters

value TomlValueSyntax

Returns

TomlPropertySyntax

No documentation is available.