From 2317a58f39210beed1252e972cbd75a99c9302bc Mon Sep 17 00:00:00 2001 From: Sanchime Date: Sun, 8 May 2022 14:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sanchime.Test/Program.cs | 20 +++++++++++++++++++- Sanchime.Test/Sanchime.Test.csproj | 5 +++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/Sanchime.Test/Program.cs b/Sanchime.Test/Program.cs index d25b921..f5e058a 100644 --- a/Sanchime.Test/Program.cs +++ b/Sanchime.Test/Program.cs @@ -1 +1,19 @@ -Console.WriteLine("Hello World!"); \ No newline at end of file +using Sanchime.Functional.Core.Products; +using Sanchime.Functional.Core.Extensions; +using Sanchime.Toolkits; + +// Test test = new Test(); + +// Console.WriteLine(test.Map((Test x) => {x.Value = 2; return x;}).Value); + +// Console.WriteLine(test.Value); + +foo(10); +foo(Option.None); + +void foo(Option option) +{ + var res = option.Map(x => x + 2); + res.WriteLine(); +} + diff --git a/Sanchime.Test/Sanchime.Test.csproj b/Sanchime.Test/Sanchime.Test.csproj index d439800..4e9d71e 100644 --- a/Sanchime.Test/Sanchime.Test.csproj +++ b/Sanchime.Test/Sanchime.Test.csproj @@ -1,5 +1,10 @@ + + + + + Exe net7.0