MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Syntax­BuildersArray­Builder
Open sandboxFocus

ArrayBuilder Class

Compile-time object that allows to build a run-time array. Items of the array are run-time expressions.

Inheritance
System.Object
ArrayBuilder
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class ArrayBuilder : Object, INotNullExpressionBuilder, IExpressionBuilder

Constructors

Name Description
ArrayBuilder()

Initializes a new instance of the ArrayBuilder class where the item type is a System.Object.

ArrayBuilder(IType)

Initializes a new instance of the ArrayBuilder class where the item type is a given IType.

ArrayBuilder(Type)

Initializes a new instance of the ArrayBuilder class where the item type is a given System.Type.

Methods

Name Description
Add(Object)

Adds an item to the array.

Clone()

Returns a clone of the current ArrayBuilder.

ToExpression()

Returns a clone of the current ArrayBuilder.