public void Switch(Action<T> success, Action<Exception> error) { if (IsValue) success?.Invoke(Value); else error?.Invoke(Exception!); }