Compile-time object that allows to build a run-time array. Items of the array are run-time expressions.
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class ArrayBuilder : INotNullExpressionBuilder, IExpressionBuilderConstructors
| 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(IExpression) | Adds an item to the array. |
| Add(dynamic?) | Adds an item to the array. |
| Clone() | Returns a clone of the current ArrayBuilder. |
| ToExpression() | Returns a clone of the current ArrayBuilder. |