Add initial project structure with Result type and extension methods
This commit is contained in:
13
Rehlert.RoP/Result.cs
Normal file
13
Rehlert.RoP/Result.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user