Innovenergy_trunk/csharp/Lib/Utils/Try/TrySync.cs

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();
}