Add initial project structure with Result type and extension methods

This commit is contained in:
2025-07-23 08:43:59 +02:00
commit 94ad6e57d7
7 changed files with 249 additions and 0 deletions

13
Rehlert.RoP/Result.cs Normal file
View File

@@ -0,0 +1,13 @@
using Dunet;
namespace Rehlert.RoP;
[Union]
public partial record Result<TOk, TError>
where TOk : notnull
where TError : notnull
{
public partial record Ok(TOk Value);
public partial record Error(TError Value);
}