15 lines
221 B
C#
15 lines
221 B
C#
|
namespace InnovEnergy.Lib.Utils.Try;
|
||
|
|
||
|
[Obsolete]
|
||
|
public partial class TrySync<R>
|
||
|
{
|
||
|
private Func<R> Func { get; }
|
||
|
|
||
|
internal TrySync(Func<R> func)
|
||
|
{
|
||
|
Func = func;
|
||
|
}
|
||
|
|
||
|
public R Throw() => Func();
|
||
|
|
||
|
}
|