add fp2 sample

This commit is contained in:
Oli Sturm
2026-04-22 15:07:54 +01:00
parent f99a6e9fc7
commit 212684ccca
7 changed files with 179 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
namespace CsharpFp2.Domain;
public sealed record Money(decimal Amount)
{
public Money Add(Money other) => new(Amount + other.Amount);
public Money Subtract(Money other) => new(Amount - other.Amount);
}