From 35cc366856d20d77f9f1feaf56fa1bfde6dd6d27 Mon Sep 17 00:00:00 2001 From: Kyle Ratti Date: Tue, 1 Aug 2023 22:55:30 -0400 Subject: [PATCH] feat: add Result.FailureVal and Result.SuccessVal --- Base/Structures/Result.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Base/Structures/Result.cs b/Base/Structures/Result.cs index b4db8a9..09f166a 100644 --- a/Base/Structures/Result.cs +++ b/Base/Structures/Result.cs @@ -22,6 +22,10 @@ public readonly struct Result public bool IsSuccess => _successVal.HasValue; public bool IsFailure => _failureVal.HasValue; + public TSuccess SuccessVal => _successVal.Value; + + public TFailure FailureVal => _failureVal.Value; + public bool TrySuccess(out TSuccess output) { if (!_successVal.Try(out output))