Class SliceExpression
Represents slice of collection using range.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class SliceExpression : CustomExpression
Constructors
| Edit this page View SourceSliceExpression(Expression, Expression)
Initializes a new slice of collection or array.
Declaration
public SliceExpression(Expression collection, Expression range)
Parameters
Type | Name | Description |
---|---|---|
Expression | collection | The collection or array. |
Expression | range | The requested range of collection or array. Should of type Range. |
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
Properties
| Edit this page View SourceCollection
Gets collection.
Declaration
public Expression Collection { get; }
Property Value
Type | Description |
---|---|
Expression |
Range
Gets slice range.
Declaration
public Expression Range { get; }
Property Value
Type | Description |
---|---|
Expression |
Type
Gets result type of asynchronous operation.
Declaration
public override Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Methods
| Edit this page View SourceReduce()
Translates this expression into predefined set of expressions using Lowering technique.
Declaration
public override Expression Reduce()
Returns
Type | Description |
---|---|
Expression | Translated expression. |
Overrides
| Edit this page View SourceVisitChildren(ExpressionVisitor)
Visit children expressions.
Declaration
protected override SliceExpression VisitChildren(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ExpressionVisitor | visitor | Expression visitor. |
Returns
Type | Description |
---|---|
SliceExpression | Potentially modified expression if one of children expressions is modified during visit. |