Table of Contents

Class Interpolation

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

{ Expression , Alignment : Suffix }

public class Interpolation : InterpolatedStringContent, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
Interpolation
Implements
Inherited Members
Extension Methods

Constructors

Interpolation()

public Interpolation()

Interpolation(Expression, int, string)

public Interpolation(Expression expression, int alignment = 0, string suffix = null)

Parameters

expression Expression
alignment int
suffix string

Fields

LBrace

public static readonly TokenRole LBrace

Field Value

TokenRole

RBrace

public static readonly TokenRole RBrace

Field Value

TokenRole

Properties

Alignment

public int Alignment { get; }

Property Value

int

Expression

public Expression Expression { get; set; }

Property Value

Expression

LBraceToken

public CSharpTokenNode LBraceToken { get; }

Property Value

CSharpTokenNode

RBraceToken

public CSharpTokenNode RBraceToken { get; }

Property Value

CSharpTokenNode

Suffix

public string Suffix { get; }

Property Value

string

Methods

AcceptVisitor(IAstVisitor)

public override void AcceptVisitor(IAstVisitor visitor)

Parameters

visitor IAstVisitor

AcceptVisitor<T>(IAstVisitor<T>)

public override T AcceptVisitor<T>(IAstVisitor<T> visitor)

Parameters

visitor IAstVisitor<T>

Returns

T

Type Parameters

T

AcceptVisitor<T, S>(IAstVisitor<T, S>, T)

public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)

Parameters

visitor IAstVisitor<T, S>
data T

Returns

S

Type Parameters

T
S

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool