Table of Contents

Struct ParserLiteralConversionResult

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

Describes the deterministic result of converting one parsed simple literal to a supported declared type.

public readonly record struct ParserLiteralConversionResult : IEquatable<ParserLiteralConversionResult>
Implements
Inherited Members
Extension Methods

Properties

Error

Gets the deterministic conversion failure reason, or null after success.

public string? Error { get; init; }

Property Value

string

Success

Gets whether conversion succeeded.

public required bool Success { get; init; }

Property Value

bool

Value

Gets the converted scalar value, including null for accepted null literals.

public object? Value { get; init; }

Property Value

object