Table of Contents

Class ExpressionMixins

Namespace
ReactiveUI
Assembly
ReactiveUI.dll

Extension methods associated with the Expression class.

public static class ExpressionMixins : Object
Inheritance
ExpressionMixins

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.

public static object?[]? GetArgumentsArray(this Expression expression)

Parameters

expression Expression

The 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.

public static IEnumerable<Expression> GetExpressionChain(this Expression expression)

Parameters

expression Expression

The 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.

public static MemberInfo? GetMemberInfo(this Expression expression)

Parameters

expression Expression

The expression.

Returns

MemberInfo

The member info from the expression.

GetParent(Expression)

Gets the parent Expression of the current Expression object.

public static Expression? GetParent(this Expression expression)

Parameters

expression Expression

The expression.

Returns

Expression

The parent expression.