Class InterpolationExpression
Represents string interpolation expression.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class InterpolationExpression : CustomExpression
Properties
| Improve this Doc View SourceArguments
Returns a collection that contains one or more objects to format.
Declaration
public IReadOnlyList<Expression> Arguments { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<Expression> |
Format
Gets formatting pattern.
Declaration
public string Format { get; }
Property Value
Type | Description |
---|---|
String |
Type
Gets type of this expression.
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Remarks
May be String or FormattableString which is depends on factory method.
Methods
| Improve this Doc View SourceFormattableString(FormattableString)
Returns string interpolation expression which produces instance of FormattableString class.
Declaration
public static InterpolationExpression FormattableString(FormattableString str)
Parameters
Type | Name | Description |
---|---|---|
FormattableString | str | Formatting pattern and actual arguments. |
Returns
Type | Description |
---|---|
InterpolationExpression | String interpolation expression. |
PlainString(FormattableString)
Returns string interpolation expression which produces formatted string as String class.
Declaration
public static InterpolationExpression PlainString(FormattableString str)
Parameters
Type | Name | Description |
---|---|---|
FormattableString | str | Formatting pattern and actual arguments. |
Returns
Type | Description |
---|---|
InterpolationExpression | String interpolation expression. |
Reduce()
Translates this expression into predefined set of expressions using Lowering technique.
Declaration
public override Expression Reduce()
Returns
Type | Description |
---|---|
Expression | Translated expression. |
Overrides
Extension Methods
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)