From 198607f4ef674a6ee6ac1ad685db325ca810e843 Mon Sep 17 00:00:00 2001 From: Sanchime Date: Sat, 14 May 2022 10:05:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BD=E6=95=B0=E5=BC=8F?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sanchime.Functional/Extensions/Exceptional.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Sanchime.Functional/Extensions/Exceptional.cs diff --git a/Sanchime.Functional/Extensions/Exceptional.cs b/Sanchime.Functional/Extensions/Exceptional.cs new file mode 100644 index 0000000..27631c4 --- /dev/null +++ b/Sanchime.Functional/Extensions/Exceptional.cs @@ -0,0 +1,15 @@ +using Sanchime.Functional.Products; + +namespace Sanchime.Functional.Extensions; + +/// +/// 函数式异常扩展 +/// +public static class ExceptionalException +{ + public static Func> Return() + => val => val; + + + +}