Class IConditionGenericMethods
Inherited Members
Namespace: Unity.MARS.Query
Assembly: Unity.MARS.Interfaces.dll
Syntax
public static class IConditionGenericMethods
Methods
PassesCondition<T>(ICondition<T>, ref T)
Collapses a condition's match rating into a pass/fail.
Declaration
public static bool PassesCondition<T>(this ICondition<T> condition, ref T value)
Parameters
| Type | Name | Description |
|---|---|---|
| ICondition<T> | condition | The condition to evaluate |
| T | value | The data being filtered against |
Returns
| Type | Description |
|---|---|
| bool | True if the given trait data passes the filter function, false otherwise |
Type Parameters
| Name | Description |
|---|---|
| T | The type of data the condition uses |