Struct TemplatePart
- Namespace
- Invex.StructuredText.Expressions
- Assembly
- Invex.StructuredText.dll
One part of a Template: either literal text or an embedded expression.
public readonly struct TemplatePart
Constructors
TemplatePart(string?, Expr?)
One part of a Template: either literal text or an embedded expression.
public TemplatePart(string? Text, Expr? Expression)
Parameters
TextstringThe literal text, when this part is text.
ExpressionExprThe expression, when this part is an expression.
Properties
Expression
The expression, when this part is an expression.
public Expr? Expression { get; init; }
Property Value
Text
The literal text, when this part is text.
public string? Text { get; init; }
Property Value
- string