Metalama 1.0 / / Metalama Documentation / Aspect API Documentation / Metalama.​Framework.​Code.​Syntax­Builders / Array­Builder

Class ArrayBuilder

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

Inheritance
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 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 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.

Extension Methods

PresentingExtensions.AsHyperlink(Object)