共用方式為


ExpressionExtractHelper.ExtractMembers<T> Method

Definition

Extract referenced members of the type T from the given expression as a list of strings

public static string ExtractMembers<T> (System.Linq.Expressions.Expression<Func<T,object>> expression, out string error);
static member ExtractMembers : System.Linq.Expressions.Expression<Func<'T, obj>> * string -> string
Public Shared Function ExtractMembers(Of T) (expression As Expression(Of Func(Of T, Object)), ByRef error As String) As String

Type Parameters

T

Parameters

expression
Expression<Func<T,Object>>

The expression to search

error
String

Message about what's wrong with the expression if return value is null

Returns

A comma-separated list of strings or null

Applies to