Table of Contents

Class CodeNewArray

Namespace
LinqToDB.CodeModel
Assembly
linq2db.Tools.dll

Expression, describing new one-dimensional array declaration.

public sealed class CodeNewArray : ICodeExpression, ICodeElement
Inheritance
CodeNewArray
Implements
Extension Methods

Constructors

CodeNewArray(CodeTypeToken, bool, IEnumerable<ICodeExpression>, bool)

public CodeNewArray(CodeTypeToken type, bool valueTyped, IEnumerable<ICodeExpression> values, bool inline)

Parameters

type CodeTypeToken
valueTyped bool
values IEnumerable<ICodeExpression>
inline bool

CodeNewArray(IType, bool, IEnumerable<ICodeExpression>, bool)

public CodeNewArray(IType type, bool valueTyped, IEnumerable<ICodeExpression> values, bool inline)

Parameters

type IType
valueTyped bool
values IEnumerable<ICodeExpression>
inline bool

Properties

Inline

Generate array declaration in single code line if possible.

public bool Inline { get; }

Property Value

bool

Type

Array element type.

public CodeTypeToken Type { get; }

Property Value

CodeTypeToken

ValueTyped

Array type could be infered from values.

public bool ValueTyped { get; }

Property Value

bool

Values

Array elements.

public IReadOnlyList<ICodeExpression> Values { get; }

Property Value

IReadOnlyList<ICodeExpression>