Prose.KeyValueFragment

References
public readonly struct Prose.KeyValueFragment

Constructors

KeyValueFragment

#
Create a new fragment.
public KeyValueFragment(
key,
keyStart,
value,
valueStart
)

Properties

Key

#
Gets the key text of this pair. This string never contains leading or trailing whitespace.
public string Key { get; }

KeyEnd

#
Gets the character index within the line of the last character of the key string. This will be -1 if there is no key string.
public int KeyEnd { get; }

KeyStart

#
Gets the character index within the line of the first character of the key string. This will be -1 if there is no key string.
public int KeyStart { get; }

Value

#
Gets the value text of this pair. This string never contains leading or trailing whitespace.
public string Value { get; }

ValueEnd

#
Gets the character index within the line of the last character of the value string.
public int ValueEnd { get; }

ValueStart

#
Gets the character index within the line of the first character of the value string.
public int ValueStart { get; }