/// <summary> /// Invokes an action if an object was checked for being not null, and was. /// </summary> public static void Else(this HUMValue.Data.NotNull isNotNull, Action notNull = null) { if (isNotNull.isNull) { notNull?.Invoke(); } }
/// <summary> /// Begins an or operation if an object is check for not being null, but is. /// </summary> public static HUMValue.Data.Or Or <T>(this HUMValue.Data.NotNull notNull, T value) where T : class { return(new HUMValue.Data.Or(value, notNull.isNull)); }