Class LambdaCondition
Class LambdaCondition.
Namespace: UnityEngine.Industrial.Configuring.Core.Ruling
Syntax
public class LambdaCondition : IRuleCondition
Constructors
LambdaCondition(Predicate<RuleExecutionContext>)
Initializes a new instance of the LambdaCondition class.
Declaration
public LambdaCondition(Predicate<RuleExecutionContext> c)
Parameters
Type | Name | Description |
---|---|---|
Predicate<RuleExecutionContext> | c | The c. |
Methods
Applies(RuleExecutionContext)
Applieses the specified context.
Declaration
public bool Applies(RuleExecutionContext context)
Parameters
Type | Name | Description |
---|---|---|
RuleExecutionContext | context | The context. |
Returns
Type | Description |
---|---|
Boolean |
|