Struct ValueParseResult

Represents the outcome of a value parser.

Implements
IEquatable<ValueParseResult>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: NanoRoute
Assembly: NanoRoute.dll
Syntax
public readonly struct ValueParseResult : IEquatable<ValueParseResult>

Constructors

ValueParseResult(bool, object?)

Represents the outcome of a value parser.

Declaration
public ValueParseResult(bool Success, object? Parsed)
Parameters
Type Name Description
bool Success

true when the segment is accepted by the parser; otherwise false.

object Parsed

The parsed value when Success is true; otherwise null.

Properties

Parsed

The parsed value when Success is true; otherwise null.

Declaration
public object? Parsed { get; init; }
Property Value
Type Description
object

Success

true when the segment is accepted by the parser; otherwise false.

Declaration
public bool Success { get; init; }
Property Value
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX