Table of Contents

Method MemberAccess

Namespace
Bonsai
Assembly
Bonsai.Core.dll

MemberAccess(Expression, string)

Creates an Expression representing a chained access to a member variable.

public static Expression MemberAccess(Expression instance, string memberPath)

Parameters

instance Expression

The object to which the member chain belongs.

memberPath string

The path to an inner member variable, separated by a dot. Indexed accessors are also allowed.

Returns

Expression

The created Expression.