feat(ServiceResultExtensions): Erstellt, um die Serviceergebnisse zu verwalten.
- Aufgerüstet auf 3.3.0
This commit is contained in:
parent
a7fb97de4a
commit
528a346883
@ -17,9 +17,9 @@
|
|||||||
<RepositoryUrl>http://git.dd:3000/AppStd/WebCoreModules.git</RepositoryUrl>
|
<RepositoryUrl>http://git.dd:3000/AppStd/WebCoreModules.git</RepositoryUrl>
|
||||||
<PackAsTool>False</PackAsTool>
|
<PackAsTool>False</PackAsTool>
|
||||||
<PackageIcon>core_icon.png</PackageIcon>
|
<PackageIcon>core_icon.png</PackageIcon>
|
||||||
<Version>3.2.0</Version>
|
<Version>3.3.0</Version>
|
||||||
<AssemblyVersion>3.2.0</AssemblyVersion>
|
<AssemblyVersion>3.3.0</AssemblyVersion>
|
||||||
<FileVersion>3.2.0</FileVersion>
|
<FileVersion>3.3.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
13
DigitalData.Core.Abstractions/ServiceResultExtensions.cs
Normal file
13
DigitalData.Core.Abstractions/ServiceResultExtensions.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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