Class CollectionAccessExpression
Represents access to the collection element using ItemIndexExpression.
Inherited Members
Namespace: DotNext.Linq.Expressions
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class CollectionAccessExpression : CustomExpression
Constructors
| Improve this Doc View SourceCollectionAccessExpression(Expression, Expression)
Initializes a new collection access expression.
Declaration
public CollectionAccessExpression(Expression collection, Expression index)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression | collection | The expression representing collection. |
| Expression | index | The index of the element. Should be of type Index. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
See Also
Properties
| Improve this Doc View SourceCollection
Gets the collection.
Declaration
public Expression Collection { get; }
Property Value
| Type | Description |
|---|---|
| Expression | The collection. |
Index
Gets the index of the collection element.
Declaration
public Expression Index { get; }
Property Value
| Type | Description |
|---|---|
| Expression | The index of the item. |
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. |