Table of Contents

Class TomlComment

Namespace
RStein.TOML
Assembly
RStein.TOML.dll

Represents a TOML comment expression (e.g., # This is a comment).

public class TomlComment : TomlExpression, IEnumerable<TomlToken>, IEnumerable, IEquatable<TomlComment>
Inheritance
TomlComment
Implements
Inherited Members

Constructors

TomlComment(string)

Initializes a new instance of TomlComment with the specified comment text.

public TomlComment(string value)

Parameters

value string

The comment text, excluding the leading # character. If null, defaults to Empty.

Properties

Value

Gets the text content of the comment.

public string Value { get; }

Property Value

string

Methods

Equals(TomlComment?)

public bool Equals(TomlComment? other)

Parameters

other TomlComment

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int