XElementExtensions.GetEntityByExpression<T> Method

Get the matching entity from the entity_list by some other field (string only)
<Extension()> _ 
Public Shared Function GetEntityByExpression(Of _ 
T As ImportEntity)( _ 
ByVal elem As XElement, _ 
ByVal entity_id_path As String, _ 
ByVal entity_list As IList(Of T), _ 
ByVal match_field As Expression(Of Func(Of T, String)) _ 
) As T
This language is not supported or no code example is available.
public static T GetEntityByExpression<T>( 
this XElement elem
string entity_id_path
IList<T> entity_list
Expression<Func<T, string>> match_field 

where T : ImportEntity
This language is not supported or no code example is available.
[Extension()] 
generic<typename T> 
where T : ImportEntity
public:  
static T^ GetEntityByExpression( 
XElement^ elem
String^ entity_id_path
IList<T^>^ entity_list
Expression<Func<T^, String^>^>^ match_field 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Type Parameters

T

Parameters

elem
XElement

entity_id_path
string

entity_list
IList<T>

match_field
Expression<Func<T, string>>

Return Value

T

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition