Show / Hide Table of Contents

Class InterpolationExpression

Represents string interpolation expression.

Inheritance
Object
InterpolationExpression
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class InterpolationExpression : Expression

Properties

| Improve this Doc View Source

Arguments

Returns a collection that contains one or more objects to format.

Declaration
public IReadOnlyList<Expression> Arguments { get; }
Property Value
Type Description
IReadOnlyList<Expression>
| Improve this Doc View Source

CanReduce

Always returns true because this expression is .

Declaration
public override bool CanReduce { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Format

Gets formatting pattern.

Declaration
public string Format { get; }
Property Value
Type Description
String
| Improve this Doc View Source

NodeType

Always returns .

Declaration
public override ExpressionType NodeType { get; }
Property Value
Type Description
ExpressionType
| Improve this Doc View Source

Type

Gets type of this expression.

Declaration
public override Type Type { get; }
Property Value
Type Description
Type
Remarks

May be or which is depends on factory method.

Methods

| Improve this Doc View Source

FormattableString(FormattableString)

Returns string interpolation expression which produces instance of 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.

| Improve this Doc View Source

PlainString(FormattableString)

Returns string interpolation expression which produces formatted string as 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.

| Improve this Doc View Source

Reduce()

Translates this expression into predefined set of expressions using Lowering technique.

Declaration
public override Expression Reduce()
Returns
Type Description
Expression

Translated expression.

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)

See Also

String Interpolation in C#
String Interpolation in VB.NET
  • Improve this Doc
  • View Source
Back to top Generated by DocFX