Class RangeExpression
Expresses construction of Range.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class RangeExpression : CustomExpression
Constructors
| Improve this Doc View SourceRangeExpression(ItemIndexExpression, ItemIndexExpression)
Initializes a new range with the specified starting and ending indexes.
Declaration
public RangeExpression(ItemIndexExpression start = null, ItemIndexExpression end = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemIndexExpression | start | The inclusive start index of the range. |
| ItemIndexExpression | end | The exclusive end index of the range. |
Properties
| Improve this Doc View SourceEnd
Gets the exclusive end index of the range.
Declaration
public ItemIndexExpression End { get; }
Property Value
| Type | Description |
|---|---|
| ItemIndexExpression | The end index of the range. |
Start
Gets the inclusive start index of the range.
Declaration
public ItemIndexExpression Start { get; }
Property Value
| Type | Description |
|---|---|
| ItemIndexExpression | The inclusive start index of the range. |
Type
Gets result type of asynchronous operation.
Declaration
public override Type Type { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Overrides
Methods
| Improve this Doc 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
| Improve this Doc View SourceVisitChildren(ExpressionVisitor)
Visit children expressions.
Declaration
protected override Expression VisitChildren(ExpressionVisitor visitor)
Parameters
| Type | Name | Description |
|---|---|---|
| ExpressionVisitor | visitor | Expression visitor. |
Returns
| Type | Description |
|---|---|
| Expression | Potentially modified expression if one of children expressions is modified during visit. |