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<T>` 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.
This commit is contained in:
parent
3a1aeb7ac3
commit
e0c1b856ad
@ -1,13 +0,0 @@
|
|||||||
namespace DigitalData.Core.Abstractions
|
|
||||||
{
|
|
||||||
public static class ServiceResultExtensions
|
|
||||||
{
|
|
||||||
public static bool Try<T>(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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user