添加函数式异常扩展
This commit is contained in:
parent
1efc671213
commit
198607f4ef
|
@ -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;
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue