Table of Contents

Class ArrayCreateExpression

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

new Type[Dimensions]

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

Constructors

ArrayCreateExpression()

public ArrayCreateExpression()

Fields

AdditionalArraySpecifierRole

public static readonly Role<ArraySpecifier> AdditionalArraySpecifierRole

Field Value

Role<ArraySpecifier>

InitializerRole

public static readonly Role<ArrayInitializerExpression> InitializerRole

Field Value

Role<ArrayInitializerExpression>

NewKeywordRole

public static readonly TokenRole NewKeywordRole

Field Value

TokenRole

Properties

AdditionalArraySpecifiers

Gets additional array ranks (those without size info). Empty for "new int[5,1]"; will contain a single element for "new int[5][]".

public AstNodeCollection<ArraySpecifier> AdditionalArraySpecifiers { get; }

Property Value

AstNodeCollection<ArraySpecifier>

Arguments

public AstNodeCollection<Expression> Arguments { get; }

Property Value

AstNodeCollection<Expression>

Initializer

public ArrayInitializerExpression Initializer { get; set; }

Property Value

ArrayInitializerExpression

NewToken

public CSharpTokenNode NewToken { get; }

Property Value

CSharpTokenNode

Type

public AstType Type { get; set; }

Property Value

AstType

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