You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
574 B
22 lines
574 B
using Connected.Expressions.Collections;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq.Expressions;
|
|
|
|
namespace Connected.Expressions;
|
|
|
|
public sealed class BlockExpression : CommandExpression
|
|
{
|
|
public BlockExpression(IList<Expression> commands)
|
|
: base(DatabaseExpressionType.Block, commands[commands.Count - 1].Type)
|
|
{
|
|
Commands = commands.ToReadOnly();
|
|
}
|
|
|
|
public BlockExpression(params Expression[] commands)
|
|
: this((IList<Expression>)commands)
|
|
{
|
|
}
|
|
|
|
public ReadOnlyCollection<Expression> Commands { get; }
|
|
}
|