From e0c1b856adae1c892d762b7a66fb05474050fcdf Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Fri, 16 May 2025 13:12:02 +0200 Subject: [PATCH] Remove ServiceResultExtensions class and Try method The `ServiceResultExtensions` class has been removed from the `DigitalData.Core.Abstractions` namespace. This class included a static method `Try` for handling nullable results, which has now been eliminated. This change may indicate a refactoring or a new approach to managing nullable results in the codebase. --- .../ServiceResultExtensions.cs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 DigitalData.Core.Abstractions/ServiceResultExtensions.cs diff --git a/DigitalData.Core.Abstractions/ServiceResultExtensions.cs b/DigitalData.Core.Abstractions/ServiceResultExtensions.cs deleted file mode 100644 index 4cfda91..0000000 --- a/DigitalData.Core.Abstractions/ServiceResultExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace DigitalData.Core.Abstractions -{ - public static class ServiceResultExtensions - { - public static bool Try(this T? nullableResult, out T result) - { -#pragma warning disable CS8601 // Possible null reference assignment. - result = nullableResult; -#pragma warning restore CS8601 // Possible null reference assignment. - return nullableResult is not null; - } - } -} \ No newline at end of file