Version: 2021.3
LanguageEnglish
  • C#

IQueryHandler<T0,T1>.Eval

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool Eval(TData element);

Parameters

element A single object to be tested.

Returns

bool True if the object passes the query, false otherwise.

Description

Implement this function to evaluate the query on a single element.


Declaration

public IEnumerable<TData> Eval(TPayload payload);

Parameters

payload The input data of the query.

Returns

IEnumerable<TData> An enumerable of type TData.

Description

Implement this function to evaluate the query on a payload.