Skip to content

Class ConditionExtensions

Definition

Namespace: StardewUI.Framework.Binding
Assembly: StardewUI.dll

Extensions for the ICondition interface.

public static class ConditionExtensions

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

ICondition

A negated version of the condition, if isNegated is true; otherwise, the original condition.