From f8d760878c58f1f0bf68080f0a74cab6b09850f0 Mon Sep 17 00:00:00 2001 From: bothzoli Date: Wed, 24 Jul 2024 10:22:56 +1000 Subject: [PATCH] Add IError to the Result struct --- CSharpFunctionalExtensions/Result/Result.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharpFunctionalExtensions/Result/Result.cs b/CSharpFunctionalExtensions/Result/Result.cs index d931998d..4b3d4dd3 100644 --- a/CSharpFunctionalExtensions/Result/Result.cs +++ b/CSharpFunctionalExtensions/Result/Result.cs @@ -5,7 +5,7 @@ namespace CSharpFunctionalExtensions { [Serializable] - public readonly partial struct Result : IResult, ISerializable + public readonly partial struct Result : IResult, ISerializable, IError { public bool IsFailure { get; } public bool IsSuccess => !IsFailure;