Class ExpressionMixins
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Extension methods associated with the Expression class.
- Inheritance
-
Expression
Mixins
Methods
GetArgumentsArray(Expression)
For a Expression which is a Index type, will get all the arguments passed to the indexer. Useful for when you are attempting to find the indexer when a constant value is passed in.
Parameters
expression
ExpressionThe expression.
Returns
- object[]
An array of arguments.
GetExpressionChain(Expression)
Gets all the chain of child expressions within a Expression. Handles property member accesses, objects and indexes.
Parameters
expression
ExpressionThe expression.
Returns
- IEnumerable<Expression>
An enumerable of expressions.
GetMemberInfo(Expression)
Gets the MemberInfo where a Expression is pointing towards. Can handle MemberAccess and Index types and will handle going through the Conversion Expressions.
Parameters
expression
ExpressionThe expression.
Returns
- Member
Info The member info from the expression.
GetParent(Expression)
Gets the parent Expression of the current Expression object.
Parameters
expression
ExpressionThe expression.
Returns
- Expression
The parent expression.