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.
Connected.Framework/Connected.Expressions/Expressions/BlockExpression.cs

22 lines
574 B

2 years ago
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; }
}