diff --git a/src/Wolfgang.TryPattern/TryActionResult.cs b/src/Wolfgang.TryPattern/TryActionResult.cs index f19df8e..7590ad2 100644 --- a/src/Wolfgang.TryPattern/TryActionResult.cs +++ b/src/Wolfgang.TryPattern/TryActionResult.cs @@ -27,7 +27,9 @@ public TryActionResult } - /// Used when action succeeded + /// + /// Initializes a new instance of the TryActionResult class for a successful operation. + /// public TryActionResult() : this(true, null) { @@ -35,7 +37,10 @@ public TryActionResult() - /// Used when action failed + /// + /// Initializes a new instance of the TryActionResult class for a failed operation. + /// + /// The exception that caused the operation to fail. public TryActionResult ( Exception exception diff --git a/src/Wolfgang.TryPattern/TryFuncResult.cs b/src/Wolfgang.TryPattern/TryFuncResult.cs index b6b4d65..b009e22 100644 --- a/src/Wolfgang.TryPattern/TryFuncResult.cs +++ b/src/Wolfgang.TryPattern/TryFuncResult.cs @@ -37,7 +37,10 @@ public TryFuncResult - /// Used when function succeeded + /// + /// Initializes a new instance of the TryFuncResult class for a successful operation. + /// + /// The value produced by the successful operation. public TryFuncResult ( #if NET5_0_OR_GREATER @@ -52,7 +55,10 @@ T value - /// Used when function failed + /// + /// Initializes a new instance of the TryFuncResult class for a failed operation. + /// + /// The exception that caused the operation to fail. public TryFuncResult ( Exception? exception