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
| Edit this page 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
| Edit this page 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
| 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 CollectionAccessExpression VisitChildren(ExpressionVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
ExpressionVisitor | visitor | Expression visitor. |
Returns
Type | Description |
---|---|
CollectionAccessExpression | Potentially modified expression if one of children expressions is modified during visit. |