public static void ExecuteIfNotSet(this IFlagStore self, string key, Action act) { if (!self.IsSet(key)) { act(); } }
public static void ExecuteIfSetThenUnset(this IFlagStore self, string key, Action act) { if (self.IsSet(key)) { act(); self.Unset(key); } }
public static void ExecuteIfSetOrNot(this IFlagStore self, string key, Action actIfYes, Action actIfNot) { if (self.IsSet(key)) { actIfYes(); } else { actIfNot(); } }