Table of Contents

Class ExpressionHelper

Namespace
Bonsai
Assembly
Bonsai.Core.dll

Provides a set of static methods to manipulate expression trees.

public static class ExpressionHelper
Inheritance
ExpressionHelper
Inherited Members

Fields

ArgumentSeparator

Represents the character separating selected members in a member selector expression.

ImplicitParameterName

Represents the name of the implicit parameter in a member selector expression.

MemberSeparator

Represents the character separating class members in a member selector expression.

Methods

GetGenericTypeBindings(Type, Type)

Returns an array of Type objects that represent the bounded type parameters resulting from matching the specified generic type with a concrete type.

IsCollectionType(Type)

Tests whether the specified type implements a serialization compatible collection.

IsEnumerableType(Type)

Tests whether the specified type implements the generic enumerable interface.

MemberAccess(Expression, string)

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

Parse(Expression, string)

Creates an Expression representing the result of parsing a string with the specified pattern.

Parse(Expression, string, params string[])

Creates an Expression representing the result of first splitting a string using separator tokens and then parsing each of the elements against the specified pattern.

SelectMemberNames(string)

Extracts the set of member accessor paths from a composite selector string.

SelectMembers(Expression, string)

Returns the set of member selector expressions specified by a composite selector string.