TomlTextPosition Struct
Represents a position within a TOML payload (offset, line, column).
public readonly struct TomlTextPosition : IEquatable<TomlTextPosition>- Implements
Constructors
| Name | Description |
|---|---|
| TomlTextPosition(int, int, int) | Initializes a new instance of the TomlTextPosition struct. |
TomlTextPosition(int, int, int)
TomlTextPosition.csProperties
| Name | Description |
|---|---|
| Column | Gets the column number (0-based). |
| Line | Gets the line number (0-based). |
| Offset | Gets the offset in the source text (0-based). |
Column
TomlTextPosition.csOffset
TomlTextPosition.csMethods
| Name | Description |
|---|---|
| Equals(TomlTextPosition) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the fully qualified type name of this instance. |
Equals overloads
Equals(TomlTextPosition)
TomlTextPosition.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(TomlTextPosition other)Parameters
otherTomlTextPosition- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
TomlTextPosition.csGetHashCode()
TomlTextPosition.csToString()
TomlTextPosition.csOperators
| Name | Description |
|---|---|
| operator ==(TomlTextPosition, TomlTextPosition) | Compares two TomlTextPosition values for equality. |
| operator !=(TomlTextPosition, TomlTextPosition) | Compares two TomlTextPosition values for inequality. |
operator ==(TomlTextPosition, TomlTextPosition)
TomlTextPosition.csCompares two TomlTextPosition values for equality.
public static bool operator ==(TomlTextPosition left, TomlTextPosition right)operator !=(TomlTextPosition, TomlTextPosition)
TomlTextPosition.csCompares two TomlTextPosition values for inequality.
public static bool operator !=(TomlTextPosition left, TomlTextPosition right)Fields
| Name | Description |
|---|---|
| Eof | Gets a sentinel position representing end-of-file. |
Eof
Gets a sentinel position representing end-of-file.
public static readonly TomlTextPosition Eof