Table of Contents

Class RawExpr

Namespace
Invex.StructuredText.Expressions
Assembly
Invex.StructuredText.dll

Verbatim expression text, created by Raw(string). It is a condition, and converts implicitly to string, number and JSON expressions.

public sealed record RawExpr : BoolExpr, IRawExpr
Inheritance
object
RawExpr
Implements
Inherited Members

Constructors

RawExpr(string)

Verbatim expression text, created by Raw(string). It is a condition, and converts implicitly to string, number and JSON expressions.

public RawExpr(string Text)

Parameters

Text string

The text, written exactly as given.

Properties

Children

The direct sub-expressions of this node, in left-to-right order.

public override IEnumerable<Expr> Children { get; }

Property Value

IEnumerable<Expr>

Text

The text, written exactly as given.

public string Text { get; init; }

Property Value

string

Operators

implicit operator JsonExpr(RawExpr)

Treats the text as a JSON expression.

public static implicit operator JsonExpr(RawExpr raw)

Parameters

raw RawExpr

The raw text.

Returns

JsonExpr

implicit operator NumberExpr(RawExpr)

Treats the text as a number expression.

public static implicit operator NumberExpr(RawExpr raw)

Parameters

raw RawExpr

The raw text.

Returns

NumberExpr

implicit operator StringExpr(RawExpr)

Treats the text as a string expression.

public static implicit operator StringExpr(RawExpr raw)

Parameters

raw RawExpr

The raw text.

Returns

StringExpr