Table of Contents

Class CodeNew

Namespace
LinqToDB.CodeModel
Assembly
linq2db.Tools.dll

New object instantiation expression.

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

Constructors

CodeNew(CodeTypeToken, IEnumerable<ICodeExpression>, IEnumerable<CodeAssignmentStatement>)

public CodeNew(CodeTypeToken type, IEnumerable<ICodeExpression> parameters, IEnumerable<CodeAssignmentStatement> initializers)

Parameters

type CodeTypeToken
parameters IEnumerable<ICodeExpression>
initializers IEnumerable<CodeAssignmentStatement>

CodeNew(IType, IEnumerable<ICodeExpression>, IEnumerable<CodeAssignmentStatement>)

public CodeNew(IType type, IEnumerable<ICodeExpression> parameters, IEnumerable<CodeAssignmentStatement> initializers)

Parameters

type IType
parameters IEnumerable<ICodeExpression>
initializers IEnumerable<CodeAssignmentStatement>

Properties

Initializers

Object initializer properties.

public IReadOnlyList<CodeAssignmentStatement> Initializers { get; }

Property Value

IReadOnlyList<CodeAssignmentStatement>

Parameters

Constructor parameters.

public IReadOnlyList<ICodeExpression> Parameters { get; }

Property Value

IReadOnlyList<ICodeExpression>

Type

Instantiated type.

public CodeTypeToken Type { get; }

Property Value

CodeTypeToken