Result<T>References public sealed class Result<T> : IResult Show allThe result of a parsing operation. Type parameters:T AllPropertiesMethods ObsoleteInherited PropertiesAfter#public 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.Implements: AfterError#public string Error { get; }Failure in case of a unsuccessful parse.Implements: ErrorExplicitIResult.Value#object IResult.ValueImplements: ValueStart#public int Start { get; }Gets the index within the source string where the substring for this parse starts, or in he case of a failed parse where the error block starts.Implements: StartSuccess#public bool Success { get; }Gets whether the parsing was successful.Implements: SuccessText#public string Text { get; }Gets the substring indicated by this result.Implements: TextUnderlying#public string Underlying { get; }Value#public T Value { get; }Gets the value associated with this result. Only meaningful when Success is true.MethodsFail#public static Result<T> Fail(string error, string underlying, int start = 0, int after = 2147483647)Create a new failed parsing result.Parameters:error (string)Error message.underlying (string)The underlying string which was parsed.start (int = 0)Index of first character.after (int = 2147483647)Index of first character after span.Succeed#public static Result<T> Succeed(T value, string underlying, int start = 0, int after = 2147483647)Create a new successful parsing result.Parameters:value (T)Value of parsing result.underlying (string)The underlying string which was parsed.start (int = 0)Index of first character.after (int = 2147483647)Index of character after span.WithValue<Q>#public Result<Q> WithValue<Q>(Q newValue)Create a new result with the same coverage but a different value.Parameters:newValue (Q)Implements: WithValue