IResult

References
public interface IResult
Interface for parsing results.

Properties

After

#
int After { get; }
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.

Error

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

Start

#
int Start { get; }
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.

Success

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

Text

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

Value

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

Methods

WithValue<Q>

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