添加函数式异常扩展

This commit is contained in:
Sanchime 2022-05-14 10:05:56 +08:00
parent 1efc671213
commit 198607f4ef
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
using Sanchime.Functional.Products;
namespace Sanchime.Functional.Extensions;
/// <summary>
/// 函数式异常扩展
/// </summary>
public static class ExceptionalException
{
public static Func<T, Exceptional<T>> Return<T>()
=> val => val;
}