IResult

References
public interface IResult
Interface for parsing results.

Properties

After

#
Gets the index within the source string where the substring for this parse ends, or in the case of a failed parse where the error block ends.
int After { get; }

Error

#
Failure in case of a unsuccessful parse.
string Error { get; }

Start

#
Gets the index within the source string where the substring for this parse starts, or in the case of a failed parse where the error block starts.
int Start { get; }

Success

#
Gets whether the parsing was successful.
bool Success { get; }

Text

#
Gets the substring indicated by this result.
string Text { get; }

Value

#
Gets the value stored in this result.
object Value { get; }

Methods

WithValue<Q>

#
Create a new result with the same coverage but a different value.
Result<Q> WithValue<Q>(
Q
newValue
)