Class RangeExpression
Expresses construction of Range.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class RangeExpression : CustomExpression
Constructors
| Edit this page 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
| Edit this page 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
| 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 RangeExpression VisitChildren(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ExpressionVisitor | visitor | Expression visitor. |
Returns
Type | Description |
---|---|
RangeExpression | Potentially modified expression if one of children expressions is modified during visit. |