/// <summary> /// If false... /// </summary> /// <param name="this"></param> /// <param name="action"></param> /// <param name="context"></param> public static void IfFalse <T>(this BooleanVal3 @this, Action <T> action, T context) { if (@this is not null && @this.IsT1()) { action?.Invoke(context); } }
/// <summary> /// If false... /// </summary> /// <param name="this"></param> /// <param name="action"></param> public static void IfFalse(this BooleanVal3 @this, Action action) { if (@this is not null && @this.IsT1()) { action?.Invoke(); } }