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
-
objectRawExpr
- 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
TextstringThe 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
rawRawExprThe raw text.
Returns
implicit operator NumberExpr(RawExpr)
Treats the text as a number expression.
public static implicit operator NumberExpr(RawExpr raw)
Parameters
rawRawExprThe raw text.
Returns
implicit operator StringExpr(RawExpr)
Treats the text as a string expression.
public static implicit operator StringExpr(RawExpr raw)
Parameters
rawRawExprThe raw text.