9 [DebuggerTypeProxy(typeof(IndexExpressionProxy))]
10 [global::__DynamicallyInvokable]
21 [global::__DynamicallyInvokable]
24 [global::__DynamicallyInvokable]
33 [global::__DynamicallyInvokable]
36 [global::__DynamicallyInvokable]
41 return _indexer.PropertyType;
43 return _instance.Type.GetElementType();
49 [global::__DynamicallyInvokable]
52 [global::__DynamicallyInvokable]
61 [global::__DynamicallyInvokable]
64 [global::__DynamicallyInvokable]
73 [global::__DynamicallyInvokable]
76 [global::__DynamicallyInvokable]
79 return Expression.ReturnReadOnly(ref _arguments);
85 [global::__DynamicallyInvokable]
88 [global::__DynamicallyInvokable]
91 return _arguments.
Count;
97 bool flag = indexer ==
null;
100 _arguments = arguments;
107 [global::__DynamicallyInvokable]
120 [global::__DynamicallyInvokable]
123 return _arguments[index];
126 protected internal override Expression Accept(ExpressionVisitor visitor)
128 return visitor.VisitIndex(
this);
131 internal Expression Rewrite(Expression instance, Expression[] arguments)
133 return Expression.MakeIndex(instance, _indexer, arguments ?? _arguments);
Provides the base class for a generic read-only collection.
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived...
Provides an internal interface for accessing the arguments of multiple tree nodes (DynamicExpression,...
Exposes the enumerator, which supports a simple iteration over a collection of a specified type....
int ArgumentCount
Returns the number of arguments to the expression tree node. You should not use this type....
Expression GetArgument(int index)
Returns the argument at index, throwing if index is out of bounds. You should not use this type....
Provides the base class from which the classes that represent expression tree nodes are derived....
PropertyInfo Indexer
Gets the T:System.Reflection.PropertyInfo for the property if the expression represents an indexed pr...
sealed override ExpressionType NodeType
Returns the node type of this T:System.Linq.Expressions.Expression.
Represents type declarations: class types, interface types, array types, value types,...
ExpressionType
Describes the node types for the nodes of an expression tree.
ReadOnlyCollection< Expression > Arguments
Gets the arguments that will be used to index the property or array.
Discovers the attributes of a property and provides access to property metadata.
Represents a collection of objects that can be individually accessed by index.
int Count
Gets the number of elements contained in the T:System.Collections.Generic.ICollection`1.
Represents indexing a property or array.
IndexExpression Update(Expression @object, IEnumerable< Expression > arguments)
Creates a new expression that is like this one, but using the supplied children. If all of the childr...