Class ConditionExtensions
Definition
Namespace: StardewUI.Framework.Binding
Assembly: StardewUI.dll
Extensions for the ICondition interface.
Inheritance
Object ⇦ ConditionExtensions
Members
Methods
| Name | Description |
|---|---|
| NegateIf(ICondition, Boolean) | Checks a negation flag, and returns a negated version of the condition if set. |
Details
Methods
NegateIf(ICondition, bool)
Checks a negation flag, and returns a negated version of the condition if set.
public static StardewUI.Framework.Binding.ICondition NegateIf(StardewUI.Framework.Binding.ICondition condition, bool isNegated);
Parameters
condition ICondition
The original condition.
isNegated Boolean
Whether or not to negate the condition.
Returns
A negated version of the condition, if isNegated is true; otherwise, the original condition.