Table of Contents

Class PrimitiveExpression

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

Represents a literal value.

public class PrimitiveExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
PrimitiveExpression
Implements
Inherited Members
Extension Methods

Constructors

PrimitiveExpression(object)

public PrimitiveExpression(object value)

Parameters

value object

PrimitiveExpression(object, LiteralFormat)

public PrimitiveExpression(object value, LiteralFormat format)

Parameters

value object
format LiteralFormat

Fields

AnyValue

public static readonly object AnyValue

Field Value

object

Properties

EndLocation

public override TextLocation EndLocation { get; }

Property Value

TextLocation

Format

public LiteralFormat Format { get; set; }

Property Value

LiteralFormat

StartLocation

public override TextLocation StartLocation { get; }

Property Value

TextLocation

Value

public object Value { get; set; }

Property Value

object

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